Part Number Hot Search : 
REEL7 SMDJ110A AKD4121A BD414 M2114 725LB7C RL106FG 5030D
Product Description
Full Text Search
 

To Download W83877ATD Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  w83877atf winbond i/o
w83877atf data sheet revision history pages dates version version on web main contents 1 n.a. 07/29/97 0.50 first published. 2 1,3,6,49,50,98,140, 141,142,170 04/10/98 0.51 a1 typo correction and data calibrated 3 4 5 6 7 8 9 10 please note that all data and specifications are subject to change without notice. all the trade marks of products and companies mentioned in this data sheet belong to their respective owners. life support applications these products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. winbond customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify winbond for any damages resulting from such improper use or sales.
w83877atf publication release date: july 1997 - i - version 0.50 table of contents general description ................................ ................................ ................................ 1 features ................................ ................................ ................................ .......................... 2 1.0 pin configuration ................................ ................................ ............................... 4 1.0 pin description ................................ ................................ ................................ ........................ 5 1.1 host interface ................................ ................................ ................................ ......................... 5 1.2 serial port interface ................................ ................................ ................................ ........... 7 1.3 multi-mode parallel port ................................ ................................ ................................ .. 9 1.4 fdc interface ................................ ................................ ................................ .......................... 14 2.0 fdc functional description ................................ ................................ ........ 16 2.1 w83877atf fdc ................................ ................................ ................................ ........................... 16 2.2 register descriptions ................................ ................................ ................................ ......... 28 3.0 uart port ................................ ................................ ................................ ................ 39 3.1 universal asynchronous rec eiver/transmitter (uart a, uart b) .................. 39 3.2 register address ................................ ................................ ................................ ................... 40 3.3 infrared port ................................ ................................ ................................ ......................... 49 4.0 parallel port ................................ ................................ ................................ ..... 82 4.1 printer interf ace logic ................................ ................................ ................................ ..... 82 4.2 enhanced paral lel port (epp) ................................ ................................ ......................... 84 4.3 extended capab ilities parallel (ecp) port ................................ ............................... 88 4.4 extension fdd mode (extfdd) ................................ ................................ ........................... 97 4.5 extension 2fdd mode (ext2fdd) ................................ ................................ ....................... 97 5.0 plug and play configuration ................................ ................................ .... 98 6.0 acpi /legacy feature and auto power management ..................... 98 6.1 acpi/legacy pow er management ................................ ................................ ................... 98 6.2 device(auto) po wer management ................................ ................................ .................. 98 7.0 serial irq ................................ ................................ ................................ ................. 99
w83877atf publication release date: july 1997 - ii - version 0.50 7.1 start frame ................................ ................................ ................................ ........................... 100 7.2 irq/data frame ................................ ................................ ................................ ..................... 100 7.3 stop frame ................................ ................................ ................................ .............................. 101 7.4 reset and initi alization ................................ ................................ ................................ .. 101 8.0 extended function registers ................................ ................................ .. 102 8.1 extended functions enable registers (efers) ................................ ........................... 102 8.2 extended function index registers (efirs), extended function data registers (efdrs) ................................ ................................ ................................ ................... 1 03 8.3 acpi registers features ................................ ................................ ................................ ....... 150 8.4 acpi registers (acpirs) ................................ ................................ ................................ ........... 152 9.0 specifications ................................ ................................ ................................ .... 166 9.1 absolute maxim um ratings ................................ ................................ ............................ 166 9.2 dc characteris tics ................................ ................................ ................................ ............ 166 9.3 ac characteris tics ................................ ................................ ................................ ............ 168 10.0 timing waveforms ................................ ................................ ........................ 174 10.1 fdc ................................ ................................ ................................ ................................ .............. 174 10.2 uart/parallel ................................ ................................ ................................ ....................... 175 10.3 parallel port ................................ ................................ ................................ ....................... 177 11.0 application circuits ................................ ................................ .................... 183 11.1 parallel port extension fdd ................................ ................................ ........................ 183 11.2 parallel port extension 2fdd ................................ ................................ ....................... 184 11.3 four fdd mode ................................ ................................ ................................ ...................... 184 12.0 ordering information ................................ ................................ ............... 185 13.0 how ot read the top marking ................................ ............................... 185 14.0 package dimensions ................................ ................................ ..................... 186
w83877atf winbond i/o publication release date: april 1998 - 1 - version 0.51 general description the w83877atf is an enhanced version from winbond's most popular i/o chip w83877f --- which integrates the disk drive adapter, serial port (uart), irda 1.0 sir, parallel port, configurable plug- and-play registers for the whole chip --- plus additional powerful features: irda 1.1 ( mir for 1.152m bps or fir for 4m bps ), tv remote ir, acpi , serial irq, full 16-bit address decoding, and acpi compliant. the disk drive adapter functions of w83877atf include a floppy disk drive controller compatible with the industry standard 82077/765, data separator, write pre-compensation circuit, decode logic, data rate selection, clock generator, drive interface control logic, and interrupt and dma logic. the wide range of functions integrated onto the w83877atf greatly reduces the number of components required for interfacing with floppy disk drives. the w83877atf supports four 360k, 720k, 1.2m, 1.44m, or 2.88m disk drives and data transfer rates of 250 kb/s, 300 kb/s, 500 kb/s,1 mb/s, and 2 mb/s. the w83877atf provides two high-speed serial communication ports (uarts), one of which supports serial infrared communication. each uart includes a 16-byte send/receive fifo, a programmable baud rate generator, complete modem control capability, and a processor interrupt system. one of the uarts supporting infrared (ir) includes 32-byte fifo, serial ir, 1.152m bps mir, 0.576m bps, 4m bps fir, and tv remote ir (supporting nec, rc-5, extended rc-5, and recs-80 protocols). both uarts provide legacy speed with baud rate 115.2k, and provide advanced speed with baud rate 230k , 460k , and 921k bps which support higher speed modems. the w83877atf supports one pc-compatible printer port (spp), bi-directional printer port (bpp) and also enhanced parallel port (epp) and extended capabilities port (ecp). through the printer port interface pins, also available are: extension fdd mode and extension 2fdd mode allowing one or two external floppy disk drives to be connected to the notebook computer. winbond w83877atf provides functions that comply with acpi ( advanced configuration and power interface ), which includes support of legacy and acpi power management through smi or sci function pins. one 24-bit power management timer is implemented with carry notify interrupt. w83877atf also has auto power management to reduce power consumption. the serial irq for pci architecture is supported, isa irqs (irq1~irq15) can be cascaded into one irq pin. w83877atf also features isa bus irq sharing and allows two or more devices to share the same irq. w83877atf is made to fully comply with microsoft tm pc97 hardware design guide . irqs, dmas, and i/o space resource are flexible to adjust to meet isa pnp requirements. moreover, w83877atf is made to meet the specification of pc97's requirement in the power management: acpi and dpm (device power management). the configuration registers support mode selection, function enable/disable, and power down function selection. furthermore, the configurable pnp features are compatible with the plug-and-play feature demand of windows 95 tm , which makes system resource allocation more efficient than ever. another benifit is that w83877atf has the same pin assignment as w83877f, w83877af, w83877tf. th i u s makes the design very flexible.
w83877atf publication release date: april 1998 - 2 - version 0.51 features general: plug & play 1.0a compliant support 8 irqs (isa), or 15 irqs (serial irq), 4 dma channels, and 480 relocatable addresses capable of isa bus irq sharing compliant with microsoft tm pc97 hardware design guide support dpm (device power management), acpi report acpi status interrupt by nsci signal from serial irq pin, or from irq a~h pins single 24m or 48m hz crystal input fdc: compatible with ibm tm pc at disk drive systems variable write pre-compensation with track s electable capability dma enable logic support floppy disk drives and tape drives detects all overrun and underrun conditions built-in address mark detection circuit to simplify the read electronics fdd anti-virus functions with software write protect and fdd write enable signal (write data signal is forced to be inactive) support up to four 3.5-inch or 5.25-inch floppy disk drives completely compatible with industry standard 82077 360k/720k/1.2m/1.44m/2.88m format; 250k, 300k, 500k, 1m, 2m bps data transfer rate support vertical recording format support 3-mode fdd, and its windows95 tm driver 16-byte data fifos uart: two high-speed 16550 compatible uarts with 16-byte send/receive fifos midi compatible fully programmable serial-interface characteristics: - 5, 6, 7 or 8-bit characters - even, odd or no parity bit generation/detection - 1, 1.5 or 2 stop bits generation
w83877atf publication release date: april 1998 - 3 - version 0.51 internal diagnostic capabilities: - loop-back controls for communications link fault isolation - break, parity, overrun, framing error simulation programmable baud generator allows division of 1.8461 m hz and 24 mhz by 1 to (2 16 -1) maximum baud rate up to 921k bps for 14.768m hz and 1.5m bps for 24m hz infrared: support irda version 1.0 sir protocol with maximum baud rate up to 115.2k bps support sharp ask-ir protocol with maximum baud rate up to 57,600 bps support irda version 1.1 mir (1.152m bps) and fir (4m bps) protocol - single dma channel for transmitter or receiver - 32-byte fifo is supported in both fir tx/rx transmission - 8-byte status fifo is supported to store received frame status (such as overrun, crc error, etc.) support auto-config sir and fir support full customer ir support driver for microsoft tm windows 95 tm and windows 98 tm (memphis tm ) parallel port: compatible with ibm tm parallel port support ps/2 compatible bi-directional parallel port support enhanced parallel port (epp) - compatible with ieee 1284 specification support extended capabilities port (e cp) - compatible with ieee 1284 specification extension fdd mode supports disk drive b and extension 2fdd mode supports disk drives a and b through parallel port enhanced printer port back-drive current protection others: programmable configuration settings immediate or automatic power-down mode for power management all hardware power-on settings have internal pull-up or pull-down resistors as default value full 16-bit address decode (uart b pin option) pnf pin (printer-not-floppy pin) for distinguishing printer port connection --- fdd or printer; unique for notebook application of external floppy through printer port package: 100-pin qfp (w83877atf), and also 100-pin tqfp (W83877ATD)
w83877atf publication release date: april 1998 - 4 - version 0.51 pin configuration / m o b / m o a / t r a k 0 n w p / d s k c h g a 1 0 / r d a t a d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 g n d / i o w / i o r a e n a 9 a 8 a 7 a 6 a 5 v d d a 4 a 3 a 2 a 1 a 0 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 rib dcdb dsrb ctsb dtrb rtsb irq_c soutb sinb dack_a gnd drq_a souta irq_d rtsa dtra ctsa dsra dcda ria i r q g / c s / s c i d r q | c i o c h r d y m r c l k i n / s m i p d 0 p d 1 p d 2 p d 3 p d 4 v d d p d 5 p d 6 p d 7 / d a c k | c / s t b / a f d / i n i t / s l i n i r q | e b u s y g n d / a c k p e s l c t / e r r s i n a index step dsa dsb we wd rwc head dir gnd irq_h irq_b irqin irrx2 irtx2 irq_a tc dack_b irq_f drq_b
w83877atf publication release date: april 1998 - 5 - version 0.51 1.0 pin description note: refer to section 9.2 dc characteristics for details. i/o 8tc - ttl level output pin with 8 ma source-sink capability; cmos level input voltage i/o 12t - ttl level bi-directional pin with 12 ma source-sink capability i/o 12ts - ttl level bi-directional pin with 12 ma source-sink capability and schmitt-triggered input i/o 24t - ttl level bi-directional pin with 24 ma source-sink capability out 8t - ttl level output pin with 8 ma source-sink capability out 12t - ttl level output pin with 12 ma source-sink capability od 12 - open-drain output pin with 12 ma sink capability od 24 - open-drain output pin with 24 ma sink capability in t - ttl level input pin in ts - ttl level schmitt-triggered input pin in cs - cmos level schmitt-tri ggered input pin 1.1 host interface symbol pin i/o function d0 - d7 66-73 i/o 24t system data bus bits 0-7. a0 - a10 51-55 57-61 75 in t system address bus bits 0-10. iochrdy 5 od 24 in epp mode, this pin is the i/o channel ready output to extend the host read/write cycle. mr 6 in ts master reset. active high. mr is low during normal operations. cs 2 in ts active low chip select signal. a11 in ts system address bus bit 11, when 16-bit address decoder is set to logic 0 in which cr16.bit6 ( en sa 16 ). aen 62 in t system address bus enable. ior 63 in ts cpu i/o read signal. iow 64 in ts cpu i/o write signal. dack_ a 41 in ts dma acknowledge signal a. drq_a 39 out 8t dma request signal a. drq_b 100 out 12t dma request signal b. dack_ b 98 in ts dma acknowledge signal b.
w83877atf publication release date: april 1998 - 6 - version 0.51 1.1 host interface, continued symbol pin i/o function drq_c 4 out 12t dma request signal c. dack_ c 18 in ts dma acknowledge signal c. irqin 93 in ts interrupt request input. drq_d out 12t dma request signal d. irsl2 out 12t ir module mode selection 2. irrxh/irsl0 i/o 12ts when input, acts as a function of high speed ir receiving terminal. when output selected, acts as a ir module mode selection 0. pnf in ts detects printer is active, and not external fdc. when this pin pnf is detected to 1 signal, the device is switched to parallel printer. when this pin pnf is detected to 0 signal, the device is switched to external fdc. the pin is configured in cr16.bit7 (enpnf) . irrxh/irsl0 3 i/o 12ts when input pin, high speed ir received terminal. when output pin, ir module mode select 0. input or output are definied in high speed ir register. dack_ d in ts dma acknowledge signal for channel d. irsl1 out 12t ir module mode select 1. tc 97 in ts terminal count. when active, this pin indicates termination of a dma transfer. irq_ a 96 out 12t when cr16 bit 5 (goiqsel) = 0: interrupt request signal a. sci out 12t acpi interrupt signal, selected by pnp irq configure register. gio1 i/o 1 2t when cr16 bit 4 (goiqsel) = 1: general purpose i/o port 1. irq_ b 92 out 12t when cr16 bit 4 (goiqsel) = 0: interrupt request signal b. gio0 i/o 12t when cr16 bit 4 (goiqsel) = 1: general purpose i/o port 0. irq_c 44 out 12t interrupt request signal c. irq_d 37 out 12t interrupt request signal d. irq_e 23 out 12t interrupt request signal e. irq_f 99 out 12t interrupt request signal f. irq_g 1 out 12t interrupt request signal g. drq_d out 12t dma request signal channel d. irsl2 out 12t ir module mode select 2. pciclk in t pci clock input when the serial irq function is selected.
w83877atf publication release date: april 1998 - 7 - version 0.51 1.1 host interface, continued symbol pin i/o function irq_h 91 out 12t interrupt request signal h. irsl2 out 12t ir module mode selection 2. dack_ d in ts dma acknowledge signal d. serirq out 12t serial interrupt output, when the function of the serial irq is set to logic 1 defined in the cr31.bit2 (irqmods). clkin 7 in t 24mhz/48mhz clock input. clkinsel bit in cr2c register should be correctly reset/set according to the input frequency. smi 8 out 12t for the power management, the smi is and active low by the power management events, that generate an nsci in acpi mode. 1.2 serial port interface symbol pin i/o function ctsa 34 in t clear to send is the modem control input. ctsb 47 in t clear to send is the modem control input. a12 in t system address bus bit 12, when 16-bit address decoder is selected, that is , nen16sa ( cr16.bit6 ) is set to logic 0. dsra 33 in t data set ready. an active low indicates the modem or data set is ready to establish a communication link and transfer data to the uart. d s r b 48 in t data set ready. an active low indicates the modem or data set is ready to establish a communication link and transfer data to the uart. a13 in t system address bus bit 13, when 16-bit address decoder is selected. dcda 32 in t data carrier detect. an active low indicates the modem or data set has detected a data carrier. d c d b 49 in t data carrier detect. an active low indicates the modem or data set has detected a data carrier. a14 in t system address bus bit 14, when 16-bit address decoder is selected. ria 31 in t ring indicator. an active low indicates that a ring signal is being received by the modem or data set.
w83877atf publication release date: april 1998 - 8 - version 0.51 1.2 serial port interface, continued symbol pin i/o function rib 50 in t ring indicator. an active low indicates that a ring signal is being received by the modem or data set. a15 in t system address bus bit 15, when 16-bit address decoder is selected. sina 30 in t serial input of com a. used to receive serial data from the communication link. sinb 42 in t serial input of com b. used to receive serial data from the communication link. irrx1 in t when infrared function is selected, acts as infrared input. souta 38 i/o 8tc uart a serial output. used to transmit serial data out to the communication link. pen16sa in t during power-on reset, this pin is pulled up internally and is defined as pen16sa, which provides the power-on value for cr2e.bit6 ( pen16sa ). a 4.7 k w is recommended when intending to pull down at power-on reset. soutb 43 i/o 12t uart b serial output. used to transmit serial data out to the communication link. irtx1 in t infrared serial data output when com b acts as infrared port. dtra 35 i/o 8tc uart a data terminal ready. an active low informs the modem or data set that the controller is ready to communicate. phefras in t during power-on reset, this pin is pulled down internally and is defined as phefras, which provides the power-on value for cr16 bit 0 (hefras), and configuration port is defined at 250h. a 4.7 k w is recommended when intending to pull up at power-on reset, and configuration port is defined at 3f0h. dtrb 46 i/o 8t uart b data terminal ready. an active low informs the modem or data set that controller is ready to communicate. rtsa 36 i/o 8tc uart a request to send. an active low informs the modem or data set that the controller is ready to send data. ppnpcvs in t during power-on reset, this pin is pulled up internally and is defined as ppnpcvs, which provides the power-on value for cr16 bit 2 (pnpcvs). a 4.7 k w is recommended when intending to pull down at power-on reset.
w83877atf publication release date: april 1998 - 9 - version 0.51 1.2 serial port interface, continued symbol pin i/o function rtsb 45 i/o 8tc uart b request to send. an active low informs the modem or data set that the controller is ready to send data. pgoiqsel in t during power-on reset, this pin is pulled down internally and is defined as pgoiqsel, which provides the power-on value for cr16 bit 4 (goiqsel). a 4.7 k w is recommended when intending to pull up at power-on reset. irtx2 95 out 12t function as a infrared transmission data line. irrx2 94 in t function as a infrared receiving line. 1.3 multi-mode parallel port the following pins have eight functions, which are controlled by bits prtmod0, prtmod1, and prtmod2 of cr0 and cr9 (refer to section 8.0, extended functions). symbol pin i/o function busy 24 in t printer mode: busy an active high input indicates that the printer is not ready to receive data. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: mob 2 this pin is for extension fdd b; the function of this pin is the same as that of the mob pin. od 12 extension 2fdd mode: mob 2 this pin is for extension fdd a and b; the function of this pin is the same as that of the mob pin. a c k 26 in t printer mode: ack an active low input on this pin indicates that the printer has received data and is ready to accept more data. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: dsb 2 this pin is for the extension fdd b; its functions are the same as those of the dsb pin. od 12 extension 2fdd mode: dsb 2 this pin is for extension fdd a and b; the function of this pin is the same as that of the dsb pin.
w83877atf publication release date: april 1998 - 10 - version 0.51 1.3 multi-mode parallel port, continued symbol pin i/o function pe 27 in t printer mode: pe an active high input on this pin indicates that the printer has detected the end of the paper. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: wd 2 this pin is for extension fdd b; its function is the same as that of the wd pin. od 12 extension 2fdd mode: wd 2 this pin is for extension fdd a and b; the function of this pin is the same as that of the wd pin. joystick mode: nc pin. slct 28 in t printer mode: slct an active high input on this pin indicates that the printer is selected. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: we2 this pin is for extension fdd b; its functions are the same as those of the we pin. od 12 extension 2fdd mode: we 2 this pin is for extension fdd a and b; the function of this pin is the same as that of the we pin. err 29 in t printer mode: err an active low input on this pin indicates that the printer has encountered an error condition. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: head 2 this pin is for extension fdd b; its function is the same as that of the head pin. od 12 extension 2fdd mode: head 2 this pin is for extension fdd a and b; its function is the same as that of the head pin.
w83877atf publication release date: april 1998 - 11 - version 0.51 1.3 multi-mode parallel port, continued symbol pin i/o function slin 22 od 12 printer mode: slin output line for detection of printer selection. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: step 2 this pin is for extension fdd b; its function is the same as that of the step pin. od 12 extension 2fdd mode: step 2 this pin is for extension fdd a and b; its function is the same as that of the step pin . init 21 od 12 printer mode: init output line for the printer initialization. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: dir 2 this pin is for extension fdd b; its function is the same as that of the dir pin. od 12 extension 2fdd mode: dir 2 this pin is for extension fdd a and b; its function is the same as that of the dir pin. afd 20 od 12 printer mode: afd an active low output from this pin causes the printer to auto feed a line after a line is printed. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. od 12 extension fdd mode: rwc 2 this pin is for extension fdd b; its function is the same as that of the rwc pin. od 12 extension 2fdd mode: rwc 2 this pin is for extension fdd a and b; its function is the same as that of the rwc pin.
w83877atf publication release date: april 1998 - 12 - version 0.51 1.3 multi-mode parallel port, continued symbol pin i/o function stb 19 od 12 printer mode: stb an active low output is used to latch the parallel data into the printer. this pin is pulled high internally. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. - extension fdd mode: no connection this pin is a tri-state output. - extension 2fdd mode: no connection this pin is a tri-state output. pd0 9 i/o 24t printer mode: pd0 parallel port data bus bit 0. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: index 2 this pin is for extension fdd b; the function of this pin is the same as that of the index pin. this pin is pulled high internally. in t extension 2fdd mode: index 2 this pin is for extension fdd a and b; the function of this pin is the same as index pin. this pin is pulled high internally. pd1 10 i/o 24t printer mode: pd1 parallel port data bus bit 1. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: trak 02 this pin is for extension fdd b; the function of this pin is the same as that of the trak 0 pin. this pin is pulled high internally. in t extension. 2fdd mode: trak 02 this pin is for extension fdd a and b; the function of this pin is the same as trak 0 pin. this pin is pulled high internally.
w83877atf publication release date: april 1998 - 13 - version 0.51 1.3 multi-mode parallel port, continued symbol pin i/o function pd2 11 i/o 24t printer mode: pd2 parallel port data bus bit 2. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: wp 2 this pin is for extension fdd b; the function of this pin is the same as that of the wp pin. this pin is pulled high internally. in t extension. 2fdd mode: wp 2 this pin is for extension fdd a and b; the function of this pin is the same as that of the wp pin. this pin is pulled high internally. pd3 12 i/o 24t printer mode: pd3 parallel port data bus bit 3. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: rdata 2 motor on b for extension fdd b; the function of this pin is the same as that of the rdata pin. this pin is pulled high internally. in t extension 2fdd mode: rdata 2 this pin is for extension fdd a and b; the function of this pin is the same as that of the rdata pin. this pin is pulled high internally. pd4 13 i/o 24t printer mode: pd4 parallel port data bus bit 4. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. in t extension fdd mode: dskchg 2 drive select b for extension fdd b; the function of this pin is the same as that of dskchg pin. this pin is pulled high internally. in t extension 2fdd mode: dskchg 2 this pin is for extension fdd a and b; the function of this pin is the same as that of the dskchg pin. this pin is pulled high internally. pd5 14 i/o 24t printer mode: pd5 parallel port data bus bit 5. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. - extension fdd mode: no connection this pin is a tri-state output. - extension 2fdd mode: no connection this pin is a tri-state output.
w83877atf publication release date: april 1998 - 14 - version 0.51 1.3 multi-mode parallel port, continued symbol pin i/o function pd6 16 i/o 24t printer mode: pd6 parallel port data bus bit 6. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. - extension fdd mode:this pin is a tri-state output. iod 24 extension. 2fdd mode: moa 2 this pin is for extension fdd a; its function is the same as that of the moa pin. pd7 17 i/o 24t printer mode: pd7 parallel port data bus bit 7. refer to the description of the parallel port for the definition of this pin in ecp and epp mode. - extension fdd mode: this pin is a tri-state output. od 24 extension 2fdd mode: dsa 2 this pin is for extension fdd a; its function is the same as that of the dsa pin. 1.4 fdc interface symbol pin i/o function rdata 74 in cs the read data input signal from the fdd. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). dskchg 76 in cs diskette change. this signal is active low at power on and whenever the diskette is removed. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). wp 77 in cs write protected. this active low schmitt input from the disk drive indicates that the diskette is write-protected. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). trak 0 78 in cs track 0. this schmitt input from the disk drive is active low when the head is positioned over the outermost track. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn).
w83877atf publication release date: april 1998 - 15 - version 0.51 1.4 fdc interface, continued symbol pin i/o function index 81 in cs this schmitt input from the disk drive is active low when the head is positioned over the beginning of a track marked by an index hole. this input pin is pulled up internally by an approximately 1k ohm resistor. the resistor can be disabled by bit 4 of cr6 (fipurdwn). moa 79 od 24 motor a on. when set to 0, this pin enables disk drive 0. this is an open drain output. mob 80 od 24 motor b on. when set to 0, this pin enables disk drive 1. this is an open drain output. step 82 od 24 step output pulses. this active low open drain output produces a pulse to move the head to another track. dsa 83 od 24 drive select a. when set to 0, this pin enables disk drive a. this is an open drain output. dsb 84 od 24 drive select b. when set to 0, this pin enables disk drive b. this is an open drain output. we 85 od 24 write enable. an open drain output. wd 86 od 24 write data. this logic low open drain writes precompensation serial data to the selected fdd. an open drain output. rwc 87 od 24 reduced write current. this signal can be used on two-speed disk drives to select the transfer rate. an open drain output. logic 0 = 250 kb/s logic 1 = 500 kb/s when bit 5 of cr9 (en3mode) is set to high, the three-mode fdd function is enabled, and the pin will have a different definition. refer to the en3mode bit in cr9. head 88 od 24 head select. this open drain output determines which disk drive head is active. logic 1 = side 0 logic 0 = side 1 dir 89 od 24 direction of the head step motor. an open drain output. logic 1 = outward motion logic 0 = inward motion v dd 15, 56 +5 power supply for the digital circuitry gnd 25, 40 65, 90 ground
w83877atf publication release date: april 1998 - 16 - version 0.51 2.0 fdc functional description 2.1 w83877atf fdc the floppy disk controller of the w83877atf integrates all of the logic required for floppy disk control. the fdc implements a pc/at or ps/2 solution. all programmable options default to compatible values. the fifo provides better system performance in multi-master systems. the digital data separator supports up to data rate 1 m bits/sec or 2 m bits/sec. the fdc includes the following blocks: at interface, precompensation, data rate selection, digital data separator, fifo, and fdc core. 2.1.1 at interface the interface consists of the standard asynchronous signals: rd , wr , a0-a3, irq, dma control, and a data bus. the address lines select between the configuration registers, the fifo and control/status registers. this interface can be switched between pc/at, model 30, or ps/2 normal modes. the ps/2 register sets are a superset of the registers found in a pc/at. 2.1.2 fifo (data) the fifo is 16 bytes in size and has programmable threshold values. all command parameter information and disk data transfers go through the fifo. data transfers are governed by the rqm and dio bits in the main status register. the fifo defaults to disabled mode after any form of reset. this maintains pc/at hardware compatibility. the default values can be changed through the configure command. the advantage of the fifo is that it allows the system a larger dma latency without causing disk errors. the following tables give several examples of the delays with a fifo. the data are based upon the following formula: threshold (1/data rate) *8 - 1.5 m s = delay fifo threshold maximum delay to servicing at 500k bps data rate 1 byte 1 16 m s - 1.5 m s = 14.5 m s 2 byte 2 16 m s - 1.5 m s = 30.5 m s 8 byte 8 16 m s - 1.5 m s = 6.5 m s 15 byte 15 16 m s - 1.5 m s = 238.5 m s fifo threshold maximum delay to servicing at 1m bps data rate 1 byte 1 8 m s - 1.5 m s = 6.5 m s 2 byte 2 8 m s - 1.5 m s = 14.5 m s 8 byte 8 8 m s - 1.5 m s = 62.5 m s 15 byte 15 8 m s - 1.5 m s = 118.5 m s
w83877atf publication release date: april 1998 - 17 - version 0.51 at the start of a command the fifo is always disabled , and command parameters must be sent based upon the rqm and dio bit settings in the main status register. when the fdc enters the command execution phase, it clears the fifo of any data to ensure that invalid data are not transferred. an overrun and underrun will terminate the current command and the data transfer. disk writes will complete the current sector by generating a 00 pattern and valid crc. reads require the host to remove the remaining data so that the result phase may be entered. dma transfers are enabled with the specify command and are initiated by the fdc by activating the drq pin during a data transfer command. the fifo is enabled directly by asserting dack , and addresses need not be valid. note that if the dma controller is programmed to function in verify mode , a pseudo read is performed by the fdc based only on dack . this mode is only available when the fdc has been configured into byte mode (fifo disabled) and is programmed to do a read. with the fifo enabled the above operation is performed by using the new verify command. no dma operation is needed. ?@ 2.1.3 data separator the function of the data separator is to lock onto the incoming serial read data. when a lock is achieved the serial front end logic of the chip is provided with a clock which is synchronized to the read data. the synchronized clock, called the data window, is used to internally sample the serial data portion of the bit cell, and the alternate state samples the clock portion. serial to parallel conversion logic separates the read data into clock and data bytes. the digital data separator (dds) has three parts: control logic, error adjustment, and speed tracking. the dds circuit cycles once every 12 clock cycles ideally. any data pulse input will be synchronized and then adjusted by immediate error adjustment. the control logic will generate rdd and rwd for every pulse input. during any cycle where no data pulse is present, the dds cycles are based on speed. a digital integrator is used to keep track of the speed changes in the input data stream. 2.1.4 write precompensation the write precompensation logic is used to minimize bit shifts in the rddata stream from the disk drive. shifting of bits is a known phenomenon in magnetic media and is dependent on the disk media and the floppy drive. the fdc monitors the bit stream that is being sent to the drive. the data patterns that require precompensation are well known. depending upon the pattern, the bit is shifted either early or late relative to the surrounding bits. 2.1.5 perpendicular recording mode the fdc is also capable of interfacing directly to perpendicular recording floppy drives. perpendicular recording differs from the traditional longitudinal method in that the magnetic bits are oriented vertically. this scheme packs more data bits into the same area. fdcs with perpendicular recording drives can read standard 3.5" floppy disks , and can also read and write perpendicular media. some manufacturers offer drives that can read and write standard and perpendicular media in a perpendicular media drive. a single command puts the fdc into perpendicular mode. all other commands operate as they do normally. the perpendicular mode requires a 1 mbps data rate for the fdc. at this data rate the fifo eases the host interface bottleneck due to the speed of data transfer to or from the disk.
w83877atf publication release date: april 1998 - 18 - version 0.51 2.1.6 tape drive the w83877atf supports standard tape drives (1 mbps, 500 kbps, 250 kbps) and new fast tape drive (2m bps). 2.1.7 fdc core the w83877atf fdc is capable of performing twenty commands. each command is initiated by a multi-byte transfer from the microprocessor. the result can also be a multi-byte transfer back to the microprocessor. each command consists of three phases: command, execution, and result. command the microprocessor issues all required information to the controller to perform a specific operation. execution the controller performs the specified operation. result after the operation is completed, status information and other housekeeping information is provided to the microprocessor. 2.1.8 fdc commands command symbol descriptions: c: cylinder number 0 - 256 d: data pattern dir: step direction dir = 0, step out dir = 1, step in ds0: disk drive select 0 ds1: disk drive select 1 dtl: data length ec: enable count eot: end of track efifo: enable fifo eis: enable implied seek eot: end of track fifothr: fifo threshold gap: gap length selection gpl: gap length h: head number hds: head number select hlt: head load time hut: he ad unload time lock: lock efifo, fifothr, ptrtrk bits prevent affected by software reset mfm: mfm or fm mode mt: multitrack n: the number of data bytes written in a sector ncn: new cylinder number nd: non-dma mode
w83877atf publication release date: april 1998 - 19 - version 0.51 ow: overwritten pcn: present cylinder number poll: polling disable pretrk: precompensation start track number r: record rcn: relative cylinder number r/w: read/write sc: sector/per cylinder sk: skip deleted data address mark srt: step rate time st0: status register 0 st1: st atus register 1 st2: status register 2 st3: status register 3 wg: write gate alters timing of we 2.1.9 fdc instruction sets (1) read data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 0 0 1 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83877atf publication release date: april 1998 - 20 - version 0.51 (2) read deleted data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 0 1 1 0 0 command codes w 0 0 0 0 0 hds ds1 ds 0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83877atf publication release date: april 1998 - 21 - version 0.51 (3) read a track phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 0 0 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system; fdd reads contents of all cylinders from index hole to eot result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83877atf publication release date: april 1998 - 22 - version 0.51 (4) read id phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 0 1 0 command codes w 0 0 0 0 0 hds ds1 ds0 execution the first correct id information on the cylinder is stored in data register result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ disk status after the command has been completed (5) verify phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm sk 1 0 1 1 0 command codes w ec 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- -------------------- dtl/sc ------------------- execution no data transfer takes place result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83877atf publication release date: april 1998 - 23 - version 0.51 (6) version phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 0 0 command codes result w 1 0 0 1 0 0 0 0 enhanced controller (7) write data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 0 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w -------------------- eot ----------------------- -------------------- gpl ----------------------- w -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83877atf publication release date: april 1998 - 24 - version 0.51 (8) write deleted data phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w mt mfm 0 0 1 0 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- c ------------------------ ---------------------- h ------------------------ sector id information prior to command execution w w ---------------------- r ------------------------ ---------------------- n ------------------------ w w w -------------------- eot ----------------------- -------------------- gpl ----------------------- -------------------- dtl ----------------------- execution data transfer between the fdd and system result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ sector id information after command execution
w83877atf publication release date: april 1998 - 25 - version 0.51 (9) format a track phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 mfm 0 0 1 1 0 1 command codes w 0 0 0 0 0 hds ds1 ds0 w w ---------------------- n ------------------------ --------------------- sc ----------------------- bytes/sector sectors/cylinder w w --------------------- gpl --------------------- ---------------------- d ------------------------ gap 3 filler byte execution for each sector repeat: w w w w ---------------------- c ------------------------ ---------------------- h ------------------------ ---------------------- r ------------------------ ---------------------- n ------------------------ input sector parameters result r r r -------------------- st0 ----------------------- -------------------- st1 ----------------------- -------------------- st2 ----------------------- status information after command execution r r r r ---------------- undefined ------------------- ---------------- undefined ------------------- ---------------- undefined ------------------- ---------------- undefined ------------------- (10) recalibrate phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 1 1 command codes w 0 0 0 0 0 0 ds1 ds0 execution head retracted to track 0 interrupt (11) sense interrupt status phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 0 0 0 command codes result r r ---------------- st0 ------------------------- ---------------- pcn ------------------------- status information at the end of each seek operation
w83877atf publication release date: april 1998 - 26 - version 0.51 (12) specify phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 0 1 1 command codes w w | ---------srt ----------- | --------- hut ---------- | |------------ hlt -----------------------------------| nd (13) seek phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 1 command codes w 0 0 0 0 0 hds ds1 ds0 w -------------------- ncn ----------------------- execution r head positioned over proper cylinder on diskette (14) configure phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 1 configure information w 0 0 0 0 0 0 0 0 w w 0 eis efifo poll | ------ fifothr ----| | --------------------pretrk ---------------------- | execution internal registers written (15) relative seek phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 1 dir 0 0 1 1 1 1 command codes w 0 0 0 0 0 hds ds1 ds0 w | -------------------- rcn ---------------------------- |
w83877atf publication release date: april 1998 - 27 - version 0.51 (16) dumpreg phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 1 1 1 0 registers placed in fifo result r r r r r r r r r r -------------------- pcn-drive 0----------------- -------------------- pcn-drive 1 ---------------- -------------------- pcn-drive 2----------------- -------------------- pcn-drive 3 ---------------- -------- srt ----------- | -------- hut ---------- ------------ hlt -------------------------------------| nd -------------------- sc/eot -------------------- lock 0 d3 d2 d1 d0 gap wg 0 eis efifo poll| --- fifothr ---- | --------------------pretrk --------------------- (17) perpendicular mode phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 1 0 0 1 0 command code w ow 0 d3 d2 d1 d0 gap wg (18) lock phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w lock 0 0 1 0 1 0 0 command code result r 0 0 0 lock 0 0 0 0 (19) sense drive status phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w 0 0 0 0 0 1 0 0 command code w 0 0 0 0 0 hds ds1 ds0 result r ---------------- st3 ------------------------- status information about disk drive (20) invalid phase r/w d7 d6 d5 d4 d3 d2 d1 d0 remarks command w ------------- invalid codes ----------------- invalid codes (no operation - fdc goes into standby state) result r -------------------- st0 ---------------------- st0 = 80h
w83877atf publication release date: april 1998 - 28 - version 0.51 2.2 register descriptions there are several status, data, and control registers in w83877atf. these registers are defined below: address register offset read write base address + 0 base address + 1 base address + 2 base address + 3 sa register sb register td register do register td register base address + 4 ms register dr register base address + 5 dt (fifo) register dt (fifo) register base address + 7 di register cc register 2.2.1 status register a (sa register) (read base address + 0) this register is used to monitor several disk interface pins in ps/2 and model 30 modes. in ps/2 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 wp index head trak0 step drv2 init pending dir init pending (bit 7): this bit indicates the value of the floppy disk interrupt output. drv 2 (bit 6): 0 a second drive has been installed 1 a second drive has not been installed step (bit 5): this bit indicates the complement of step output. trak 0 (bit 4): this bit indicates the value of trak 0 input. head (bit 3): this bit indicates the complement of head output. 0 side 0 1 side 1
w83877atf publication release date: april 1998 - 29 - version 0.51 index (bit 2): this bit indicates the value of index output. wp (bit 1): 0 disk i s write-protected 1 disk is not write-protected dir (bit 0) this bit indicates the direction of head movement. 0 outward direction 1 inward direction in ps/2 model 30 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 wp index head trak0 step f/f drq init pending dir init pending (bit 7): this bit indicates the value of the floppy disk interrupt output. drq (bit 6): this bit indicates the value of drq output pin. step f/f (bit 5): this bit indicates the complement of latched step output. trak0 (bit 4): this bit indicates the complement of trak 0 input. head (bit 3): this bit indicates the value of head output. 0 side 1 1 side 0 index (bit 2): this bit indicates the complement of index output.
w83877atf publication release date: april 1998 - 30 - version 0.51 wp (bit 1): 0 disk is not write-protected 1 disk is write-protected dir (bit 0) this bit indicates the direction of head movement. 0 inward direction 1 outward direction 2.2.2 status register b (sb register) (read base address + 1) this register is used to monitor several disk interface pins in ps/2 and model 30 modes. in ps/2 mode, the bit definitions for this register are as follows: 1 2 3 4 5 6 7 0 mot en a we rdata toggle wdata toggle drive sel0 mot en b 1 1 drive sel0 (bit 5): this bit indicates the status of do register bit 0 (drive select bit 0). wdata toggle (bit 4): this bit changes state at every rising edge of the wd output pin. rdata toggle (bit 3): this bit changes state at every rising edge of the rdata output pin. we (bit 2): this bit indicates the complement of the we output pin. mot en b (bit 1) this bit indicates the complement of the mob output pin. mot en a (bit 0) this bit indicates the complement of the moa output pin. in ps/2 model 30 mode, the bit definitions for this register are as follows:
w83877atf publication release date: april 1998 - 31 - version 0.51 1 2 3 4 5 6 7 0 dsc dsd we f/f rdata f/f dsa dsb drv2 wd f/f drv 2 (bit 7): 0 a second drive has been installed 1 a second drive has not been installed dsb (bit 6): this bit indicates the status of dsb output pin. dsa (bit 5): this bit indicates the status of dsa output pin. wd f/f(bit 4): this bit indicates the complement of the latched wd output pin at every rising edge of the wd output pin. rdata f/f(bit 3): this bit indicates the complement of the latched rdata output pin . we f/f (bit 2): this bit indicates the complement of latched we output pin. dsd (bit 1): 0 drive d has been selected 1 drive d has not been selected dsc (bit 0): 0 drive c has been selected 1 drive c has not been selected
w83877atf publication release date: april 1998 - 32 - version 0.51 2.2.3 digital output register (do register) (write base address + 2) the digital output register is a write-only register controlling drive motors, drive selection, drq/irq enable, and fdc resetting. all the bits in this register are cleared by the mr pin. the bit definitions are as follows: 7 6 5 4 3 2 1-0 drive select: 00 select drive a 01 select drive b 10 select drive c 11 select drive d floppy disk controller reset active low resets fdc dma and int enable active high enable drq/irq motor enable a. motor a on when active high motor enable b. motor b on when active high motor enable c. motor c on when active high motor enable d. motor d on when active high 2.2.4 tape drive register (td register) (read base address + 3) this register is used to assign a particular drive number to the tape drive support mode of the data separator. this register also holds the media id, drive type, and floppy boot drive information of the floppy disk drive. in normal floppy mode, this register includes only bit 0 and 1. the bit definitions are as follows: 1 2 3 4 5 6 7 0 tape sel 0 tape sel 1 x x x x x x if three mode fdd function is enabled (en3mode = 1 in cr9), the bit definitions are as follows: 1 2 3 4 5 6 7 0 floppy boot drive 0 floppy boot drive 1 drive type id0 drive type id1 media id0 media id1 tape sel 0 tape sel 1
w83877atf publication release date: april 1998 - 33 - version 0.51 media id1 media id0 (bit 7, 6): these two bits are read only. these two bits reflect the value of cr8 bit 3, 2. drive type id1 drive type id0 (bit 5, 4): these two bits reflect two of the bits of cr7. which two bits are reflected depends on the last drive selected in the do register. floppy boot drive 1, 0 (bit 3, 2): these two bits reflect the value of cr8 bit 1, 0. tape sel 1, tape sel 0 (bit 1, 0): these two bits assign a logical drive number to the tape drive. drive 0 is not available as a tape drive , and is reserved as the floppy disk boot drive. tape sel 1 tape sel 0 drive selected 0 0 none 0 1 1 1 0 2 1 1 3 2.2.5 main status register (ms register) (read base address + 4) the main status register is used to control the flow of data between the microprocessor and the controller. the bit definitions for this register are as follows: fdd 0 busy, (d0b = 1), fdd number 0 is in the seek mode. fdd 1 busy, (d1b = 1), fdd number 1 is in the seek mode. fdc busy, (cb). a read or write command is in the process when cb = high. non-dma mode, the fdc is in the non-dma mode, this bit is set only during the execution phase in non-dma mode. transition to low state indicates execution phase has ended. data input/output, (dio). if dio= high then transfer is from data register to the processor. if dio = low then transfer is from processor to data register. request for master (rqm). a high on this bit indicates data register is ready to send or receive data to or from the processor. 7 6 5 4 3 2 1 0 fdd 2 busy, (d2b = 1), fdd number 2 is in the seek mode. fdd 3 busy, (d3b = 1), fdd number 3 is in the seek mode. 2.2.6 data rate register (dr register) (write base address + 4) the data rate register is used to set the transfer rate and write precompensation. the data rate of the fdc is programmed by the cc register for pc-at and ps/2 model 30 and ps/2 mode, and not by the dr register. the real data rate is determined by the most recent write to either of the dr register or cc register.
w83877atf publication release date: april 1998 - 34 - version 0.51 1 2 3 4 5 6 7 0 drate0 drate1 precomp0 precomp1 precomp2 power down s/w reset 0 s/w reset (bit 7): this bit is the software reset bit. power-down (bit 6): 0 fdc in normal mode 1 fdc in power-down mode precomp2 precomp1 precomp0 (bit 4, 3, 2): these three bits select the value of write precompensation. the following tables show the precompensation values for the combination of these bits. precom precompensation delay 2 1 0 250k - 1mbps 2 mbps tape drive 0 0 0 default delays default delays 0 0 1 41.67 ns 20.8ns 0 1 0 83.34 ns 41.17ns 0 1 1 125.00 ns 62.5ns 1 0 0 166.67 ns 83.3ns 1 0 1 208.33 ns 104.2ns 1 1 0 250.00 ns 125.00ns 1 1 1 0.00 ns (disabled) 0.00ns (disabled) data rate default precompensation delays 250 kb/s 125 ns 300 kb/s 125 ns 500 kb/s 125 ns 1 mb/s 41.67 ns 2 mb/s 20.8 ns
w83877atf publication release date: april 1998 - 35 - version 0.51 drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc and reduced write current control. 00 500 kb/s (mfm), 250 kb/s (fm), rwc = 1. 01 300 kb/s (mfm), 150 kb/s (fm), rwc = 0. 10 250 kb/s (mfm), 125 kb/s (fm), rwc = 0. 11 1 mb/s (mfm), illegal (fm), rwc = 1. the 2mb/s data rate for tape drive is only supported by setting 01 to drate1 and drate0 bits, as well as setting 10 to drta1 and drta0 bits , which are two of the configuration cr2d. please refer to the function of cr2d and the data rate table for individual data rates setting. 2.2.7 fifo register (r/w base address + 5) the data register consists of four status registers in a stack , with only one register presented to the data bus at a time. this register stores data, commands, and parameters , and provides diskette-drive status information. data bytes are passed through the data register to program or obtain results after a command. in the w83877atf, this register defaults to fifo disabled mode after reset. the fifo can change its value and enable its operation through the configure command. status register 0 (st0) 7-6 5 4 3 2 1-0 us1, us0 drive select: 00 drive a selected 01 drive b selected 10 drive c selected 11 drive d selected hd head address: 1 head selected 0 head selected nr not ready: 1 drive is not ready 0 drive is ready ec equipment check: 1 when a fault signal is received from the fdd or the track 0 signal fails to occur after 77 step pulses 0 no error se seek end: 1 seek end 0 seek error ic interrupt code: 00 normal termination of command 01 abnormal termination of command 10 invalid command issue 11 abnormal termination because the ready signal from fdd changed state during command execution
w83877atf publication release date: april 1998 - 36 - version 0.51 status register 1 (st1) missing address mark. 1 when the fdc cannot detect the data address mark or the data address mark has been deleted. nw (not writable). 1 if a write protect signal is detected from the diskette drive during execution of write data. nd (no data). 1 if specified sector cannot be found during execution of a read, write or verifly data. not used. this bit is always 0. or (over rum). 1 if the fdc is not serviced by the host system within a certain time interval during data transfer. de (data error).1 when the fdc detects a crc error in either the id field or the data field. not used. this bit is always 0. en (end of track). 1 when the fdc tries to access a sector beyond the final sector of a cylinder. 0 1 2 3 4 5 6 7 status register 2 (st2) 1 2 3 4 5 6 7 0 bc (bad cylinder) md (missing address mark in data field). 1 if the fdc cannot find a data address mark (or the address mark has been deleted) when reading data from the media 0 no error 1 bad cylinder 0 no error sn (scan not satisfied) 1 during execution of the scan command 0 no error sh (scan equal hit) 1 during execution of the scan command, if the equal condition is satisfied 0 no error wc (wrong cylinder) 1 indicates wrong cylinder dd (data error in the data field) 1 if the fdc detects a crc error in the data field 0 no error cm (control mark) 1 during execution of the read data or scan command 0 no error not used. this bit is always 0 status register 3 (st3) 1 2 3 4 5 6 7 0 us0 unit select 0 us1 unit select 1 hd head address ts two-side to track 0 ry ready wp write protected ft fault
w83877atf publication release date: april 1998 - 37 - version 0.51 2.2.8 digital input register (di register) (read base address + 7) the digital input register is an 8-bit read-only register used for diagnostic purposes. in a pc/xt or at only bit 7 is checked by the bios. when the register is read, bit 7 shows the complement of dskchg , while other bits of the data bus remain in tri-state. bit definitions are as follows: x x x x x x x x 0 1 2 3 4 5 6 7 reserved for the hard disk controller during a read of this register, these bits are in tri-state dskchg in the ps/2 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 high dens drate0 drate1 dskchg 1 1 1 1 dskchg (bit 7): this bit indicates the complement of the dskchg input. bit 6-3: these bits are always a logic 1 during a read. drate1 drate0 (bit 2, 1): these two bits select the data rate of the fdc. refer to the dr register bits 1 and 0 for the settings corresponding to the individual data rates. high dens (bit 0): 0 500 kb/s or 1 mb/s data rate (high density fdd) 1 250 kb/s or 300 kb/s data rate in the ps/2 model 30 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 drate0 drate1 dskchg noprec dmaen 0 0 0
w83877atf publication release date: april 1998 - 38 - version 0.51 dskchg (bit 7): this bit indicates the status of dskchg input. bit 6-4: these bits are always a logic 1 during a read. dmaen (bit 3): this bit indicates the value of do register bit 3. noprec (bit 2): this bit indicates the value of cc register noprec bit. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc. 2.2.9 configuration control register (cc register) (write base address + 7) this register is used to control the data rate. in the pc/at and ps/2 mode, the bit definitions are as follows: x x x x x x drate0 drate1 0 1 2 3 4 5 7 6 x: reserved bit 7-2: reserved. these bits should be set to 0. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc. in the ps/2 model 30 mode, the bit definitions are as follows: 1 2 3 4 5 6 7 0 drate0 drate1 noprec x x x x x x : reserved bit 7-3: reserved. these bits should be set to 0. noprec (bit 2): this bit indicates no precompensation. it has no function and can be set by software. drate1 drate0 (bit 1, 0): these two bits select the data rate of the fdc.
w83877atf publication release date: april 1998 - 39 - version 0.51 3.0 uart port 3.1 universal asynchronous receiver/transmitter (uart a, uart b) the uarts are used to convert parallel data into serial format on the transmit side , and convert serial data to parallel format on the receiver side. the serial format, in ord er of transmission and reception, is a start bit, followed by five to eight data bits, a parity bit (if programmed) and one, one and a half (five - bit format only) or two stop bits. the uarts are capable of handling divisors of 1 to 65535 and producing a 16x clock for driving the internal transmitter logic. provisions are also included to use this 16x clock to drive the receiver logic. the uarts also support the midi data rate. furthermore, the uarts also include complete modem control capability , and a proc essor interrupt system that may be software trailed to the computing time required to handle the communication link. the uarts have a fifo mode to reduce the number of interrupts presented to the cpu. in each uart, there are 16 - byte fifos for both receive and transmit mode.
w83877atf publication release date: april 1998 - 40 - version 0.51 3.2 register address table 3 - 1 uart register bit map b it n umber r egister a ddress b ase 0 1 2 3 4 5 6 7 8 bdlab = 0 r eceiver b uffer r egister (read only) rbr rx data bit 0 rx data bit 1 rx dat a bit 2 rx data bit 3 rx data bit 4 rx data bit 5 rx data bit 6 rx data bit 7 8 bdlab = 0 t ransmitter b uffer r egister ( write only) tbr tx data bit 0 tx data bit 1 tx data bit 2 tx data bit 3 tx data bit 4 tx data bit 5 tx data bit 6 tx data bit 7 9 bdlab = 0 i nterrupt c ontrol r egister icr rbr data ready interrupt enable (erdri) tbr empty interrupt enable (etbrei) usr interrupt enable (eusri) hsr interrupt enable (ehsri) 0 0 0 0 a i nterrupt s tatus r egister ( read only ) isr "0" if interrup t pending interrupt status bit (0) interrupt status bit (1) interrupt status bit (2)** 0 0 fifos enabled ** fifos enabled ** a u art fifo c ontrol r egister (write only) ufr fifo enable rcvr fifo reset xmit fifo reset dma mode select reserved reversed rx interrupt active level (lsb) rx interrupt active level (msb) b u art c ontrol r egister ucr data length select bit 0 (dls0) data length select bit 1 (dls1) multiple stop bits enable (msbe) parity bit enable (pbe) even parity enable (epe) parity bit fixed enab le pbfe) set silence enable (sse) baud rate divisor latch access bit (bdlab) c h andshake c ontrol r egister hcr data terminal ready (dtr) request to send (rts) loopback ri input irq enable internal loopback enable 0 0 0 d u art s tatus r egister usr rbr data ready (rdr) overrun error (oer) parity bit error (pber) no stop bit error (nser) silent byte detected (sbd) tbr empty (tbre) tsr empty (tsre) rx fifo error indication (rfei) ** e h andshake s tatus r egister hsr cts toggling (tcts) dsr toggling (tdsr) ri falling edge (feri) dcd toggling (tdcd) clear to send (cts) data set ready (dsr) ring indicator (ri) data carrier detect (dcd) f u ser d efined r egister udr bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 8 bdlab = 1 b audrate d ivisor l atch l ow bll bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 9 bdlab = 1 b audrate d ivisor l atch h igh bhl bit 8 bit 9 bit 10 bit 11 bit 12 bit 13 bit 14 bit 15 *: bit 0 is the least significant bit. the least significant bit is the first bit serially transmitted or recei ved. **: these bits are always 0 in 16450 mode.
w83877atf publication release date: april 1998 - 41 - version 0.51 3 .2.1 uart control register (ucr) (read/write) the uart control register controls and defines the protocol for asynchronous data communications, including data length, stop bit, parity, and baud rate selection. 1 2 3 4 5 6 7 0 data length select bit 0 (dls0) data length select bit 1(dls1) multiple stop bits enable (msbe) parity bit enable (pbe) even parity enable (epe) parity bit fixed enable (pbfe) set silence enable (sse) baudrate divisor latch access bit (bdlab) bit 7: bdlab. when this bit is set to a logical 1, designers can access the divisor (in 16 - bit binary format) from the divisor latches of the baud rate generator during a read or write operation. when this bit is r eset, the receiver buffer register, the transmitter buffer register, or the interrupt control register can be accessed. bit 6: sse. a logical 1 forces the serial output (sout) to a silent state (a logical 0). only sout is affected by this bit; the transmitter is not affected. bit 5: pbfe. when pbe and pbfe of ucr are both set to a logical 1, (1) if epe is a logical 1, the parity bit is fixed as a logical 0 to transmit and check. (2) if epe is a logical 0, the parity bit is fixed as a logical 1 to transm it and check. bit 4: epe. this bit describes the number of logic 1's in the data word bits and parity bit only when bit 3 is programmed. when this bit is set, an even number of logic 1's are sent or checked. when the bit is reset, an odd number of logic 1's are sent or checked. bit 3: pbe. when this bit is set, the position between the last data bit and the stop bit of the sout will be stuffed with the parity bit at the transmitter. for the receiver, the parity bit in the same position as the transmitter wi ll be detected. bit 2: msbe. this bit defines the number of stop bits in each serial character that is transmitted or received. (1) if msbe is set to a logical 0, one stop bit is sent and checked. (2) if msbe is set to a logical 1, and data length is 5 bits, one and a half stop bits are sent and checked. (3) if msbe is set to a logical 1, and data length is 6, 7, or 8 bits, two stop bits are sent and checked. bits 0 and 1: dls0, dls1. these two bits define the number of data bits that are sent or checked in each serial character.
w83877atf publication release date: april 1998 - 42 - version 0.51 table 3 - 2 word length definition dls1 dls0 data length 0 0 5 bits 0 1 6 bits 1 0 7 bits 1 1 8 bits 3.2.2 uart status register (usr) (read/write) this 8 - bit register provides information about the status of the data transfer during communication. 1 2 3 4 5 6 7 0 rbr data ready (rdr) overrun error (oer) parity bit error (pber) no stop bit error (nser) silent byte detected (sbd) transmitter buffer register empty (tbre) transmitter shift register empty (tsre) rx fifo error indication (rfei) bit 7: rfei. in 16450 mode, this bit is always set to a logic 0. in 16550 mode, this bit is set to a logic 1 when there is at least one parity bit error, but no stop bit error or silent byte det ected in the fifo. in 16550 mode, this bit is cleared by reading from the usr if there are no remaining errors left in the fifo. bit 6: tsre. in 16450 mode, when tbr and tsr are both empty, this bit will be set to a logical 1. in 16550 mode, if the transmit fifo and tsr are both empty, it will be set to a logical 1. other than in these two cases, this bit will be reset to a logical 0. bit 5: tbre. in 16450 mode, when a data character is transferred from tbr to tsr, this bit will be set to a logical 1. if et rei of icr is a logical 1, an interrupt will be generated to notify the cpu to write the next data. in 16550 mode, this bit will be set to a logical 1 when the transmit fifo is empty. it will be reset to a logical 0 when the cpu writes data into tbr or fifo. bit 4: sbd. this bit is set to a logical 1 to indicate that received data are kept in silent state for a full word time, including start bit, data bits, parity bit, and stop bits. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0.
w83877atf publication release date: april 1998 - 43 - version 0.51 bit 3: nser. this bit is set to a logical 1 to indicate that the received data have no stop bit. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu reads usr, it will clear this bit to a logical 0. bit 2: pber. this bit is set to a logical 1 to indicate that the parity bit of the eceived data is wrong. in 16550 mode, it indicates the same condition for the data on top of the fifo. when the cpu r eads usr, it will clear this bit to a logical 0. bit 1: oer. this bit is set to a logical 1 to indicate that received data have been overwritten by the next received data before they were read by the cpu. in 16550 mode, it indicates the same condition instead of fifo full. when the cpu reads usr, it will clear this bit to a logical 0. bit 0: rdr. this bit is set to a logical 1 to indicate received data are ready to be read by the cpu in the rbr or fifo. after no data are left in the rbr or fifo, the bit wil l be reset to a logical 0. 3.2.3 handshake control register (hcr) (read/write) this register controls the pins of the uart used for handshaking peripherals such as modem, and controls the diagnostic mode of the uart. 0 0 0 0 1 2 3 4 5 6 7 data terminal ready (dtr) request to send (rts) loopback ri input irq enable internal loopback enable bit 4: when this bit is set to a logical 1, the uart enters diagnostic mode by an internal loopback, as follows: (1) sout is forced to a logical 1, and sin is isolated from the communication link instead of the tsr. (2) modem output pins are set to t heir inactive state. (3) modem input pins are isolated from the communication link and connect internally as dtr (bit 0 of hcr) ? dsr , rts ( bit 1 of hcr) ? cts , loopback ri input ( bit 2 of hcr) ? ri and irq enable ( bit 3 of hcr) ? dcd . aside from the above connections, the uart operates normally. this method allows the cpu to test the uart in a convenient way. bit 3: the uart interrupt output is enabled by setting this bit to a logic 1. in the diagnostic mode this bit is internally connected to the mo dem control input dcd . bit 2: this bit is used only in the diagnostic mode. in the diagnostic mode this bit is internally connected to the modem control input ri . bit 1: this bit controls the rts output. the value of this bit is inverted and output to rts . bit 0: this bit controls the dtr output. the value of this bit is inverted and output to dtr .
w83877atf publication release date: april 1998 - 44 - version 0.51 3.2.4 handshake status register (hsr) (read/write) this register reflects the current state of four input pins for handshake peripherals such as a mo dem , and records changes on these pins. 1 2 3 4 5 6 7 0 ri falling edge (feri) clear to send (cts) data set ready (dsr) ring indicator (ri) data carrier detect (dcd) cts toggling (tcts) dsr toggling (tdsr) dcd toggling (tdcd) bit 7: this bit is the opposite of the dcd input. this bit is equivalent to bit 3 of hcr in loopback mode. bit 6: this bit is the opposite of the ri input. this bit is equivalent to bit 2 of hcr in loopback mode. bit 5: this bit is the opposite of the dsr input. this bit is equivalent to bit 0 of hcr in loopback mode. bit 4: this bit is the opposite of the cts input. this bit is equivalent to bit 1 of hcr in loopback mode. bit 3: tdcd. th is bit indicates that the dcd pin has changed state after hsr was read by the cpu. bit 2: feri. this bit indicates that the ri pin has changed from low to high state after hsr was read by the cpu. bit 1: tdsr. this bit indicates that the dsr pin has changed state after hsr was read by the cpu. bit 0: tcts. this bit indicates that the cts pin has changed state after hsr was read by the cpu.
w83877atf publication release date: april 1998 - 45 - version 0.51 3.2.5 uart fifo control register (ufr) (write only) this register is used to control the fifo functions of the uart. 1 2 3 4 5 6 7 0 fifo enable receiver fifo reset transmitter fifo reset dma mode select reserved reserved rx interrupt active level (lsb) rx interrupt active level (msb) bit 6, 7: these two bits are used to set the active level for the receiver fifo interrupt. for example, if the interrupt active level is set as 4 bytes, once there are more than 4 data characters in the receiver fifo, the interrupt will be activated to notify the cpu to read the data from the fifo. table 3 - 3 fifo trigger level bit 7 bit 6 rx fifo interrupt ac tive level (bytes) 0 0 01 0 1 04 1 0 08 1 1 14 bit 4, 5: reserved bit 3: when this bit is programmed to log ic 1, the dma mode will change from mode 0 to mode 1 if ufr bit 0 = 1. bit 2: setting this bit to a logical 1 resets the tx fifo counter logic to initial state. this bit will clear to a logical 0 by itself after being set to a logical 1. bit 1: setting this bit to a logical 1 resets the rx fifo counter logic to initial state. this bit will clear to a logical 0 by itself after being set to a logical 1. bit 0: this bit enables the 16550 (fifo) mode of the uart. this bit should be set to a logical 1 befor e other bits of ufr are programmed.
w83877atf publication release date: april 1998 - 46 - version 0.51 3.2.6 interrupt status register (isr) (read only) this register reflects the uart interrupt status, which is encoded by different interrupt sources into 3 bits. 1 2 3 4 5 6 7 0 0 if interrupt pending interrupt status bit 0 interrupt status bit 1 interrupt status bit 2 fifos enabled fifos enabled 0 0 bit 7, 6: these two bits are set to a logical 1 when ufr bit 0 = 1. bit 5, 4: these two bits are always logic 0. bit 3: in 16450 mode, this bit is 0. in 16550 mode, both bit 3 and 2 are set to a logical 1 when a time - out interrupt is pending. bit 2, 1: these two bits ide ntify the priority level of the pending interrupt, as shown in the table below. bit 0: this bit is a logical 1 if there is no interrupt pending. if one of the interrupt sources has occurred, this bit will be set to a logical 0. table 3 - 4 interrupt control function isr interrupt set and fu nction bit 3 bit 2 bit 1 bit 0 interrupt priority interrupt type interrupt source clear interrupt 0 0 0 1 - - no interrupt pending - 0 1 1 0 first uart receive status 1. oer = 1 2. pber =1 3. nser = 1 4. sbd = 1 read usr 0 1 0 0 second rbr data ready 1. rbr data ready 2. fifo interrupt active level reached 1. read rbr 2. read rbr until fifo data under active level 1 1 0 0 second fifo data timeout data present in rx fifo for 4 characters period of time since last access of rx fifo. read rbr 0 0 1 0 third tbr empty tbr empty 1. write data into tbr 2. read isr (if priority is third) 0 0 0 0 fourth handshake status 1. tcts = 1 2. tdsr = 1 3. feri = 1 4. tdcd = 1 read hsr ** bit 3 of isr is enabled when bit 0 of ufr is logical 1.
w83877atf publication release date: april 1998 - 47 - version 0.51 3.2.7 interrupt control register (icr) (read/write) this 8 - bit register allows the five types of controller interrupts to activate the interrupt output signal separately. the interrupt system can be totally disabled by resetting bits 0 through 3 of the interrupt control register (icr). a selected interrupt can be enabled by setting the appropriate bits of this register to a logical 1. 0 0 0 1 2 3 4 5 6 7 0 0 rbr data ready interrupt enable (erdri) tbr empty interrupt enable (etbrei) uart receive status interrupt enable (eusri) handshake status interrupt enable (ehsri) bit 7 - 4: these four bits are always logic 0. bit 3: ehsri. setting this bit to a logical 1 enables the handshake status register interrupt. bit 2: eusri. setting this bit to a logical 1 enables the uart status register interrupt. bit 1: etbrei. setting this bit to a logical 1 enables the tbr empty interrupt. bit 0: erdri. setting this bit to a logical 1 enables the rbr data ready interrupt. 3.2.8 programmable baud generator (bll/bhl) (read/write) two 8 - bit registers, bll and bhl, compose a programmable baud generator that uses 24 mhz to generate a 1.8461 mhz frequency and divides it by a divisor from 1 to 2 16 - 1. the output frequency of the baud generator is the baud rate multiplied by 16, and this is the base frequency for the transmitter and receiver. the table below illustrates the use of the baud generator with a frequency of 1.8461 mhz. in high - speed uart mode (refer to cr0c bit7 and cr0c bit6), the programmable baud generator directly uses 24 mhz and the same divisor as the normal speed divisor. in high - speed mode, the data transmission rate can be as high as 1.5m bps.
w83877atf publication release date: april 1998 - 48 - version 0.51 3.2.9 user - defined register (udr) (read/write) this is a temporary register that can be accessed and defined by the user. table 3 - 5 baud rate table baud rate using 24 m hz to generate 1.846 1 mhz desired baud rate decimal divisor used to generate 16x clock percent error difference between desired and actual 50 2304 ** 75 1536 ** 110 1047 0.18% 134.5 857 0.099% 150 768 ** 300 384 ** 600 192 ** 1200 96 ** 1800 64 ** 2000 58 0.53% 2400 48 ** 360 0 32 ** 4800 24 ** 7200 16 ** 9600 12 ** 19200 6 ** 38400 3 ** 57600 2 ** 115200 1 ** 230400 4 note 1 ** 460800 2 note 1 ** 921600 1 note 1 ** 1.5m 1 note 2 0% note 1: only use in high speed mode, when fasta/fastb bits are set (refer to cr19 bit1 and cr19 bit0). note 2: only use in high speed mode, when tura/turb bits are set (refer to cr0c bit7 and bit6). ** the percentage error for all baud rates, except where indicated otherwise, is 0.16%
w83877atf publication release date: april 1998 - 49 - version 0.51 3.3 ir port in the w83877af includes two serial ports, that is , uart a and uart b. the second serial port, uart b, also has built - in infrared (ir) functions which include irda 1.0 sir, irda 1.1 mir (1.152m bps), irda fir (4m bps), sharp ask - ir, and remote control (that support nec, rc - 5, advanced rc - 5, and recs - 80 protocol). 4.3.1 advanced uart b register description when bank select enable bit (enbnksel, in cr2c.bit3) is set, uart b will be switched to advanced uart b, and eight register sets can be accessed. these register sets co ntrol enhanced uart b, ir function switching such as sir, mir, or fir. also , a superior traditional uart b function can be used, such as 32 - byte transmitter/receiver fifo, non - encoding irq identify status register, and automatic flow control. the mir/fir and remote control registers are also defined in these register sets. the structure of he register sets is shown below. set 0 reg 7 reg 6 reg 5 reg 4 bdl/ssr reg 2 reg 1 reg 0 set 1 set 3 set 4 set 5 set 6 set 7 set 2 all in one reg to select ssr *set 0, 1 are legacy/advanced uart registers *set 2~7 are advanced uart registers
w83877atf publication release date: april 1998 - 50 - version 0.51 all set s registers have a common register which is sets select register (ssr) , in order to switch to any set when con figuring this register. the summary description of these sets is shown below. set uart ir mode sets description 0 ?3 ?3 legacy/advanced uart control and status registers. 1 ?3 ?3 legacy baud rate divisor register. 2 ?3 advanced uart control and status registers. 3 ?3 version id and mapped control registers. 4 ?3 transmitter/receiver/timer counter registers and ir control registers. 5 ?3 flow control and ir control and frame status fifo registers. 6 ?3 ir physical layer control registers 7 ?3 r emote control and ir front - end module selection registers. 4.3.2 set0 - legacy/advanced uart control and status registers address offset register name register description 0 rbr/tbr receiver/transmitter buffer registers 1 icr interrupt control register 2 isr/ufr interrupt status or uart fifo control register 3 ucr/ssr uart control or sets select register 4 hcr handshake control register 5 usr uart status register 6 hsr handshake status register 7 udr/escr user defined register 4.3.2.1 set0.reg0 - receiver/transmitter buffer registers (rbr/tbr) (read/write) receiver buffer register is read only and transmitter buffer register is write only. these registers are described the ame as legacy uart. in legacy uart, this port only supports pio mode. in dvanced uart, if setup to mir/fir/remote ir, this port will support dma handshake function. two dma channels can be used, that is , one tx dma channel and another rx dma channel. therefore, single dma channel is also supported when the bit of d_chsw (dma cha nnel swap, in set2.reg2.bit3) is set and the tx/rx dma channel is swapped. note that two dma channels are defined in config register cr2a , which selects dma channel or disables dma channel. if rx dma channel is enabled and tx dma channel is disabled, then the single dma channel will be selected.
w83877atf publication release date: april 1998 - 51 - version 0.51 4.3.2.2 set0.reg1 - interrupt control register (icr) mode b7 b6 b5 b4 b3 b2 b1 b0 uart 0 0 0 0 ehsri eusri etbrei erdri advanced uart etmri efsfi etxthi edmai ehsri eusri/ txuri etbrei erxthi where uart is us ed to legacy uart, and the functions for these bits are defined in the previous uart, the traditional sir or ask - ir based on the legacy uart also has the same definitions. the advanced uart functions , including advanced sir/ask - ir, mir, fir, or remote ir , are described as follows. bit 7: etmri - enable timer interrupt write to 1 , enable timer interrupt. bit 6: mir, fir mode: efsfi - enable frame status fifo interrupt write to 1 , enable frame status fifo interrupt. advanced sir/ask - ir, remote i r: not used. bit 5: advanced sir/ask - ir, mir, fir, remote ir: etxthi - enable transmitter threshold interrupt write to 1 , enable transmitter threshold interrupt. bit 4: mir, fir, remote ir: edmai - enable dma interrupt. write to 1 , enable dma interrupt. bit 3: advanced uart/sir/ask - ir, mir, fir, remote ir: ehsri - enable hsr (handshake status register) interrupt write to 1 , enable handshake status register interrupt. note that the bit irhssl (infrared handshake select) should be set to 1, then this bit ehsri is effective. bit 2: advanced sir/ask - ir: eusri - enable usr (uart status register) interrupt write to 1 , enable uart status register interrupt. mir, fir, remote controller: ehsri/etxuri - enable usr interrupt or enable transmitter underrun interrupt write to 1 , enable usr interrupt or enable transmitter underrun interrupt. bit 1: etbrei - enable tbr (transmitter buffer register) empty interrupt write to 1 , enable transmitter buffer register empty interrupt. bi t 0: erbri - enable rdr (receiver buffer register) interrupt write to 1 , enable receiver buffer register interrupt.
w83877atf publication release date: april 1998 - 52 - version 0.51 4.3.2.3 set0.reg2 - interrupt status register/uart fifo control register (isr/ufr) (1) interrupt status register: (write only) mode b7 b6 b5 b4 b3 b2 b1 b0 legacy uart fifo enable fifo enable 0 0 iid2 iid1 iid0 ip advanced uart tmr_i fsf_i txth_i dma_i hs_i usr_i/ fend_i txemp_i rxth_i reset value 0 0 1 0 0 0 1 0 legacy uart: same as previous register defined. advanced uart: bi t 7: tmr_i - timer interrupt. set to 1 when timer counts to 0. this bit will be affected by (1) the timer registers are defined in set4.reg0 and set4.reg1, (2) en_tmr(enable timer, in set4.reg2.bit0) should be set to 1, (3) entmr_i (enable timer interrupt, in set0.reg1.bit7) should be set to 1. bit 6: mir, fir modes: fsf_i - frame status fifo interrupt. set to 1 when frame status fifo is equal to or larger than the threshold level or frame status fifo time - out occurs. clear to 0 when frame statu s fifo is below the threshold level. advanced uart/sir/ask - ir, remote ir modes: not used. bit 5: txth_i - transmitter threshold interrupt. set to 1 if the tbr (transmitter buffer register) fifo is below the threshold level. clear to 0 if the tbr (transmitter buffer register) fifo is below the threshold level. bit 4: mir, fir, remote ir modes: dma_i - dma interrupt. set to 1 if the dma controller 8237a sends a tc (terminal count) to i/o device which may be a transmitter tc or a receiver tc. clear to 0 when this register is read. bit 3: hs_i - handshake status interrupt. set to 1 when the handshake status register has a toggle. clear to 0 when handshake status register (hsr) is read. note that in all ir modes including sir, ask - ir, mir, fir, and remote control , ir are defaulted to inactive except set ir handshake status enable (irhs_en) to 1. bit 2: advanced uart/sir/ask - ir modes: usr_i - uart status interrupt. set to 1 when overrun, or parity bit, or stop bit, or silent byte detec ted error in the uart status register (usr) is set to 1. clear to 0 when usr is read. mir, fir modes: fend_i - frame end interrupt. set to 1 when (1) a frame has a grace end to be detected where the frame signal is defined in the physical layer of irda version 1.1 (2) abort signal or illegal signal has been detected during receiving valid data. clear to 0 when this register is read. remote controller mode:
w83877atf publication release date: april 1998 - 53 - version 0.51 not used. bit 1: txemp_i - transmitter empty. set to 1 when transmitter (or, say, f ifo + transmitter) is empty. clear to 0 when this register is read. bit 0: rxth_i - receiver threshold interrupt. set to 1 when (1) the receiver buffer register (rbr) is equal to or larger than the threshold level, (2) rbr occurs time - out if the receiver buffer register has valid data and below the threshold level. clear to 0 when rbr is less than threshold level from reading rbr. (2) uart fifo control register (ufr): mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 legacy uart rxftl1 (msb) rxft l0 (lsb) 0 0 0 txf_rst rxf_rst en_fifo advanced uart rxftl1 (msb) rxftl0 (lsb) txftl1 (msb) txftl0 (lsb) 0 txf_rst rxf_rst en_fifo reset value 0 0 0 0 0 0 0 0 legacy uart: the definition of this register is same as legacy uart mode. advanced uart: bit 7, 6: rxftl1, 0 - receiver fifo threshold level definition is same as legacy uart, that is to determine the rxth_i to become 1 when the receiver fifo threshold level is equal or larger than the defined value shownbelow. rxftl1, 0 (bit 7, 6) rx fifo threshold level ( fifo size: 16 - byte ) rx fifo threshold level ( fifo size: 32 - byte ) 00 1 1 01 4 4 10 8 16 11 14 26 note that the fifo size is referred to set2.reg4. bit 5, 4: txftl1, 0 - transmitter fifo threshold level to determine the txth_i (transmitter threshold level interrupt) is set to 1 when the transmitter threshold level is less than the programmed value shown as follows.
w83877atf publication release date: april 1998 - 54 - version 0.51 txftl1, 0 (bit 5, 4) tx fifo threshold level ( fifo size: 16 - byte ) tx fifo threshold level ( fifo size: 32 - by te ) 00 1 1 01 3 7 10 9 17 11 13 25 bit 3 ~0 same legacy uart mode 4.3.2.4 set0.reg3 - uart control register/set select register (ucr/ssr): these two registers share the same address. in any set, set select register (ssr) can be programmed to desired set, but uart control register can be programmed only in set 0 and set 1, that is, in other sets programming this register will have no effect. the mapping of entry set and programming value is shown as follows. ssr bits selected 7 6 5 4 3 2 1 0 hex value set 0 ?e set 0 1 any value but not used in set 2~7 ?e set1 1 1 1 0 0 0 0 0 0xe0 set 2 1 1 1 0 0 1 0 0 0xe4 set 3 1 1 1 0 1 0 0 0 0xe8 set 4 1 1 1 1 1 1 0 0 0xec set 5 1 1 1 1 0 0 0 0 0xf0 set 6 1 1 1 1 0 1 0 0 0xf4 set 7 uart control register: defined legacy uart. 4.3.2.5 set0.reg4 - handshake control register (hcr) mode b7 b6 b5 b4 b3 b2 b1 b0 legacy uart 0 0 0 xloop en_irq lp_ri rts dtr advanced uart ad_md2 ad_md1 ad_md0 sir_pls tx_wt en_dma rts dtr reset va lue 0 0 0 0 0 0 0 0
w83877atf publication release date: april 1998 - 55 - version 0.51 legacy uart register: these registers are defined the same as in the previous description. advanced uart register: bit 7~5 advanced uart/sir/ask - ir, mir, fir, remote controller modes: ad_md2~0 - advanced uart/infrared mode select. these registers are active when advanced uart select (adv_sl, in set2.reg2.bit0) is set to 1. operational mode selection is defined as follows. when the backward operation occurs these register will be reset to 0 and backward legacy uart mode. ad_m d2~0 (bit 7, 6, 5) selected mode 000 advanced uart 001 low speed mir (0.576m bps) 010 advanced ask - ir 011 advanced sir 100 high speed mir (1.152m bps) 101 fir (4m bps) 110 consumer ir 111 reserved bit 4: mir, fir modes: sir_pls - send infrared pulse write to 1 then automatically sends a 2 m s infrared pulse after physical frame end , . in order to notify sir that the high speed infrared is still in process when this pulse is sent. this bit will be automatically cleared by ha rdware. other modes: not used. bit 3: mir, fir modes: tx_wt - transmission waiting if this bit sets to 1, the transmitter will wait for tx fifo to reach threshold level or transmitter time - out which avoids short data bytes to want to transmit, before beginning to transmit data from tx fifo. this is in order to avoid underrun. other modes: not used.
w83877atf publication release date: april 1998 - 56 - version 0.51 bit 2: mir, fir modes: en_dma - enable dma enable dma function to transmit or receive. before using this, the dma channel should be s elect. if rx dma channel is set and tx dma channel is disabled, then the single dma channel is used. in the single channel system, the bit of d_chsw (dma channel swap, in set 2.reg2.bit3) will determine rx dma channel or tx dma channel. other modes: not used. bit 1, 0: rts, dtr functional definitions are the same as in legacy uart mode. 4.3.2.6 set0.reg5 - uart status register (usr) mode b7 b6 b5 b4 b3 b2 b1 b0 legacy uart rfei tsre tbre sbd nser pber oer rdr advanced uart lb_infr tsre tbr e mx_lex phy_err crc_err oer rdr reset value 0 0 0 0 0 0 0 0 legacy uart register: these registers are defined the same as in the previous description. advanced uart register: bit 7: mir, fir modes: lb_infr - last byte in frame end set to 1 when the last byte of a frame is in the fifo bottom. this bit indicates that one frame is separated from another frame when rx fifo has more than one frame. bit 6, 5: same as legacy uart description. bit 4: mir, fir modes: mx_lex - maximum frame length ex ceed set to 1 when frame length from the receiver has exceeded the programmed frame length , which is in set4.reg6 and reg5. if this bit is set to 1, the receiver will not receive any data to rx fifo. bit 3: mir, fir modes: phy_err - physical layer error set to 1 when an illegal data symbol is received, where the illegal data symbol is defined in physical layer of irda version 1.1. when this bit is set to 1, the decoder of receiver will be aborted , and a frame end signal is set to 1.
w83877atf publication release date: april 1998 - 57 - version 0.51 bit 2: mir, f ir modes: crc_err - crc error set to 1 when an attached crc is error. bit 1, 0: oer - overrun error, rdr - rbr data ready definitions are same as for legacy uart. 4.3.2.7 set0.reg6 - handshake status register (hsr) mode b7 b6 b5 b4 b3 b2 b1 b0 legacy uart dcd ri dsr cts tdcd feri tdsr tcts advanced uart dcd ri dsr cts tdcd feri tdsr tcts reset value 0 0 0 0 0 0 0 0 legacy/advanced uart register: these registers are defined the same as in the previous description. 4.3.2.8 set0.reg7 - use r defined register (udr/audr) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 legacy uart bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced uart flc_act undrn rx_bsy/ rx_ip lst_fe/ rx_pd s_fend 0 lb_sf rx_to reset value 0 0 0 0 0 0 0 0 legacy uart register: these registers are defined the same as in the previous description. advanced uart register: bit 7 mir, fir modes: flc_act - flow control active set to 1 when flow control occurs. clear to 0 when this register is read. note t hat this will be affected by set5.reg2 which controls the sir mode switches to mir/fir mode or when mir/fir mode operated in dma function switches to sir mode. bit 6 mir, fir modes: undrn - underrun set to 1 when transmitter is empty and not set s_fend (in this register bit 3) operated in pio mode or not tc (terminal count) operated in dma mode. clear to 0 when write to 1.
w83877atf publication release date: april 1998 - 58 - version 0.51 bit 5 mir, fir modes: rx_bsy - receiver busy set to 1 when receiver is busy or active in process. remote ir mode: rx_ip - receiver in process set to 1 when receiver is in process. bit 4: mir, fir modes: lst_fe - lost frame end set to 1 when a frame end for an entire frame is lost. clear to 0 when read this register. remote ir modes: rx_pd - receiver pulse detected set to 1 when one or more than one remote pulses are detected. clear to 0 when read this register. bit 3 mir, fir modes: s_fend - set a frame end write to 1 when wanting to terminate the frame; that is, the procedure of pio comma nd is an entire frame = write frame data (first) + write s_fend (last) this bit should be set to 1, if used in pio mode, to avoid transmitter underrun. note that this bit s_fend is set to 1, that is, equivalent to tc (terminal count) in dma mode. this bit should therefore be set to 0 in dma mode. bit 2: reserved. bit 1: mir, fir modes: lb_sf - last byte stay in fifo set to 1 that indicates one or more than one frame end still stay in receiver fifo. bit 0: mir, fir, remote ir modes: rx_to - receiver fifo or frame status fifo time - out set to 1 when receiver fifo or frame status fifo occurs time - out
w83877atf publication release date: april 1998 - 59 - version 0.51 4.3.3 set1 - legacy baud rate divisor register address offset register name register description 0 bll baud rate divisor latch (low byte) 1 bhl baud rate divisor latch (high byte) 2 isr/ufr interrupt status or uart fifo control register 3 ucr/ssr uart control or sets select register 4 hcr handshake control register 5 usr uart status register 6 hsr handshake status re gister 7 udr/escr user defined register 4.3.3.1 set1.reg0~1 - baud rate divisor latch (bll/bhl) the two registers of bll and bhl are baud rate divisor latch in the legacy uart/sir/ask - ir mode. read/write these registers, if set in advanced uart mode, will occur backward operation, that is, will go to legacy uart mode and clear some register values shown in the table below. set & register advanced mode dis_back= legacy mode dis_back=0 set 0.reg 4 bit 7~5 - set 2.reg 2 bit 0, 5, 7 bit 5, 7 set 4.reg 3 bit 2, 3 - note that dis_back=1 (disable backward operation) in legacy uart/sir/ask - ir mode will not affect any register which can operate legacy sir/ask - ir. 4.3.3.2 set1.reg 2~7 these registers are defined the same as the set 0 registers.
w83877atf publication release date: april 1998 - 60 - version 0.51 4.3.4 set2 - interrupt status or uart fifo control register (isr/ufr) these registers are only used in advanced modes. address offset register name register description 0 abll advanced baud rate divisor latch (low byte) 1 abhl advanced b aud rate divisor latch (high byte) 2 adcr1 advanced uart control register 1 3 ssr sets select register 4 adcr2 advanced uart control register 2 5 reserved - 6 txfdth transmitter fifo depth 7 rxfdth receiver fifo depth 4.3.4.1 reg0, 1 - advanced baud rate divisor latch (abll/abhl) the two registers are the same as the legacy uart baud rate divisor latch in set 1. reg0~1. when using advanced uart/sir/ask - ir mode operation, these registers should be programmed to set baud rate. this is to prevent a b ackward operation occurring. 4.3.4.2 reg2 - advanced uart control register 1 (adcr1) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced uart br_out - en_lout d_chsw aloop dmathl dma_f adv_sl reset value 0 0 0 0 0 0 0 0 bit 7: br_out - baud rate clock output write to 1 enables the programmed baud rate clock to output to dtr pin. this bit is the only test baud rate divisor. bit 6: reserved, write 0. bit 5: en_lout - enable loopback output write to 1 enables output of transmitter data to irtx pin during doing loopback operation. setting this bit can check output data with internal data. bit 4: d_chsw - dma tx/rx channel swap if using signal dma channel in mir/fir mode, then the dma channel can be swapped. d_chsw dma channel selected 0 receiver (default) 1 transmitter write to 1 enables output data during the aloop=1.
w83877atf publication release date: april 1998 - 61 - version 0.51 bit 3: aloop - all mode loopback write to 1 enables loopback in all modes. bit 2: dmathl - dma threshold level sets dma threshold level as shown in the tab le below. dmathl tx fifo threshold rx fifo threshold 16 - byte 32 - byte (16/32 - byte) 0 13 13 4 1 23 7 10 bit 1: dma_f - dma fairness dma_f function description 0 dma request (dreq) is forced inactive after 10.5us 1 no effect on dma request. bit 0: adv_sl - advanced mode select write to 1 selects advanced mode. 4.3.4.3 reg3 - sets select register (ssr) reading this register returns e0 16 . write it to select other register set. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ss r6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 1 1 1 0 0 0 0 0 4.3.4.4 reg4 - advanced uart control register 2 (adcr2) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced uart dis_bac k - pr_div1 pr_div0 rx_fsz1 rx_fsz0 tx_fsz1 txfsz0 reset value 0 0 0 0 0 0 0 0 bit 7: dis_back - disable backward operation write to 1, read or write bll or bhl (baud rate divisor latch register, in set1.reg0~1) , will disable backward legacy uart mode. when using legacy sir/ask - ir mode, this bit should be set to 1 to avoid backward operation. bit 6: reserved, write 0.
w83877atf publication release date: april 1998 - 62 - version 0.51 bit 5, 4: pr_div1~0 - pre - divisor 1~0. these bits select pre - divisor for external input clock 24m hz. the clock through the pre - divisor then inputs to baud rate divisor of uart. pr_div1~0 pre - divisor max. baud rate 00 13.0 115.2k bps 01 1.625 921.6k bps 10 6.5 230.4k bps 11 1 1.5m bps bit 3, 2: rx_fsz1~0 - receiver fifo size 1~0 these bits setup receiver fifo size when fifo is enabled. rx_fsz1~0 rx fifo size 00 16 - byte 0 1 32 - byte 1x reserved bit 2, 0: tx_fsz1~0 - transmitter fifo size 1~0 these bits setup transmitter fifo size when fifo is enabled. tx_fsz1~0 tx fifo size 00 16 - byte 01 32 - byte 1x reserved 4.3.4.5 reg6 - transmitter fifo depth (txfdth) (read only) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced uart 0 0 txfd5 txfd4 txfd3 txfd2 txfd1 txfd1 reset value 0 0 0 0 0 0 0 0
w83877atf publication release date: april 1998 - 63 - version 0.51 bit 7~6: reserved, read 0. bit 5~0: reading these bits will return the current transmitter fifo depth, that is, how many bytes there are in the transmitter fifo. 4.3.4.6 reg7 - receiver fifo depth (rxfdth) (read only) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced uart 0 0 rxfd5 rxfd4 rxfd3 rxfd2 rxfd1 rxfd1 reset value 0 0 0 0 0 0 0 0 bit 7~6: reserved, read 0. bit 5~0: read these bits will return the current receiver fifo depth, that is, how many bytes there are in the receiver fifo. 4.3.5 set3 - version id and mapped control registers address offset register name register description 0 auid advanced uart id 1 mp_ucr mapped uart control register 2 mp_ufr mapped uart fifo control register 3 ssr sets select register 4 reversed - 5 reserved - 6 reserved - 7 reserved - 4.3.5.1 reg0 - advanced uart id (auid) this register is read only. indicates advanced uart version id. read it and return 1x 16 . 4.3.5.2 reg1 - mapped uart control register (mp_ucr) read only. reading this register that returns uart control register value of set 0.
w83877atf publication release date: april 1998 - 64 - version 0.51 4.3.5.3 reg2 - mapped uart fifo control register ( mp_ufr) read only. reading this register returns uart fifo control register (ufr) value of set 0. 4.3.5.4 reg3 - sets select register (ssr) reading this register returns e4 16 . write it to select other register set. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 1 1 1 0 0 1 0 0 4.3.6 set4 - tx/rx/timer counter registers and ir control registers. address offset register name register description 0 tmrl timer value low byte 1 tmrh timer v alue high byte 2 ir_msl infrared mode select 3 ssr sets select register 4 tfrll transmitter frame length low byte 5 tfrlh transmitter frame length high byte 6 rfrll receiver frame length low byte 7 rfrlh receiver frame length high byte 4.3.6.1 set4.reg0, 1 - timer value register (tmrl/tmrh) this is a 12 - bit timer with resolution of 1 ms, that is, the programmed maximum time is 2 12 - 1 ms. the timer is a down - counter. the timer starts down count when the bit en_tmr (enable timer) of set4.reg2. is set to 1. when the timer down counts to zero and en_tmr=1, the tmr_i is set to 1. when the counter down counts to zero, a new initial value will be re - loaded into timer counter. 4.3.6.2 set4.reg2 - infrared mode select (ir_msl) mode bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 advanced uart - - - - ir_msl1 ir_msl0 tmr_tst en_tmr reset value 0 0 0 0 0 0 0 0
w83877atf publication release date: april 1998 - 65 - version 0.51 bit 7~4: reserved , write to 0. bit 3, 2: ir_msl1, 0 - infrared mode select select legacy uart or sir or ask - ir mode. note that using legacy sir/ ask - ir should set dis_back=1 to avoid backward operation when programming baud rate. mode selected is shown below. note that to avoid legacy backward operation, the bit of dis_back (disable backward, in set2.reg4. bit7) should be set to 1 when legacy ask - ir mode or legacy sir mode is selected. ir_msl1, 0 operation mode selected 00 legacy uart 01 reserved 10 legacy ask - ir 11 legacy sir bit 1: tmr_tst - timer test write to 1 will cause reading the tmrl/tmrh will return the programmed values of tmrl /tmrh, that is, it does not return down count counter value. this bit is for test timer register. bit 0: en_tmr - enable timer write to 1 enables the timer. 4.3.6.3 set4.reg3 - set select register (ssr) reading this register returns e8 16 . a write to this register selects other set. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 1 1 1 1 1 0 0 0 4.3.6.4 set4.reg4, 5 - transmitter frame length (tfrll/tfrlh) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 tfrll bit 7 bit 6 bit 5 bit 4 bit3 bit 2 bit 1 bit 0 reset value 0 0 0 0 0 0 0 0 tfrlh - - - bit 12 bit 11 bit 10 bit 9 bit 8 reset value - - - 0 0 0 0 0
w83877atf publication release date: april 1998 - 66 - version 0.51 these are 13 - bit registers. a write to these registers will cause the transmitter frame length of a package be programmed. these registers are only used in apm=1 (automatic package mode, set5.reg4.bit5). when apm=1, the physical layer will split data stream to a programmed frame length if the transmitted data is larger th an the programmed frame length. when these registers are read, they will return the number of bytes which have not been transmitted from a frame length programmed. 4.3.6.5 set4.reg6, 7 - receiver frame length (rfrll/rfrlh) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rfrll bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reset value 0 0 0 0 0 0 0 0 rfrlh - - - bit 12 bit 11 bit 10 bit 9 bit 8 reset value - - - 0 0 0 0 0 these are 13 - bit registers which combine to form a 13 - bit up counter. by programming these registers, the receiver frame length will be limited to the programmed frame length. if the received frame length is larger than the programmed receiver frame length, the bit of mx_lex (maximum length exceed) will be set to 1. simultaneously, the receiver will not receive any data to rx fifo until the next start flag in the next frame, which is defined in the physical layer irda 1.1, is reached; the received data then begins to write to rx fifo. reading these registers will return the number of received data bytes from the receiver for a frame. 4.3.7 set 5 - flow control and ir control and frame status fifo registers address offset register name register description 0 fcbll flow control baud rate divisor latch register (low byte) 1 fcbhl flow control baud rate divisor latch register (high byte) 2 fc_md flow control mode operation 3 ssr sets select register 4 ircfg1 infrared config register 5 fs_fo frame status fifo register 6 rfrlfl receiver frame length fifo low byte 7 rfrlfh receiver frame length fifo high byte 4.3.7.1 set5.reg0, 1 - flow control baud rate divisor latch register (fcdll/ fcdhl) if flow control occurs from mir/fir mode change to sir mode, then the pre - programming baud rate of fcbll/fcbhl is loaded to advanced baud rate divisor latch (adbll/adbhl).
w83877atf publication release date: april 1998 - 67 - version 0.51 4.3.7.2 set5.reg2 - flow control mode operation (fc_md) these registers control flow control mode operation as shown in the table below. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 fc_md fc_md2 fc_md1 fc_ md0 - fc_dsw en_fd en_brfc en_fc reset value 0 0 0 0 0 0 0 0 bit 7~5 fc_md2 - flow control mode when flow control state occurs, these bits will be loaded to ad_md2~0 of advanced hsr (handshake status register). these three bits are defined the same as ad_md2~0. bit 4: reserved , write 0. bit 3: fc_dsw - flow control dma channel swap write to 1, when flow control state occurs enables dma channel of both transmitter and receiver to be swapped. fc_dsw next mode after flow control occurred 0 receiv er channel 1 transmitter channel bit 2: en_fd - enable flow dma control write to 1 enables use of dma channel when flow control has occurred. bit 1: en_brfc - enable baud rate flow control write to 1 enables fc_bll/fc_bhl (flow control baud rate divider latch, in set5.reg1~0) to be loaded to advanced baud rate divisor latch (adbll/adbhl, in set2.reg1~0). bit 0: en_fc - enable flow control write to 1 allows use of flow control function and activation of bit 7~1 of this register. 4.3.7.3 set5.reg 3 - sets select register (ssr) a write to this register will change set of register. reading this register will return ec 16 . reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 1 1 1 0 1 1 0 0
w83877atf publication release date: april 1998 - 68 - version 0.51 4.3.7.4 set5.reg4 - infrared config register 1 (ircfg1) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ircfg1 - fsf_th fend_m aux_rx - - irhssl ir_full reset value 0 0 0 0 0 0 0 0 bit 7: reserved , write 0. bit 6: fsf_th - frame status fifo thre shold set this bit to determine the frame status fifo threshold level and to generate the fsf_i. the threshold level values are defined as follows. fsf_th status fifo threshold level 0 2 1 4 bit 5: fend_md - frame end mode write to 1 enables hardware automatically to split same length frame defined set4.reg4 and set4.reg5, i.e., tfrll/tfrlh. bit 4: aux_rx - auxiliary receiver pin write to 1 selects irrx input pin. (refer to set7.reg7.bit5) bit 3~2: reserved , write 0. bit 1: irhssl - infrared handshake status select write to 0 brings the hsr (handshake status register) into normal operation the same as uart. write to 1 disables hsr; reading hsr will then return 30 16 . bit 0: ir_full - infrared full duplex operation write to 0 will cause ir function to operate in half duplex. write to 1 will cause ir function to operate in full duplex. 4.3.7.5 set5.reg5 - frame status fifo register (fs_fo) this register are indicated the fifo bottom of frame status. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 fs_fo fsfdr lst_fr - mx_lex phy_err crc_err rx_ov fsf_ov reset value 0 0 0 0 0 0 0 0
w83877atf publication release date: april 1998 - 69 - version 0.51 bit 7: fsfdr - frame status fifo data ready indicates that there is valid data in frame status fifo bottom. bit 6: lst_fr - lost frame set to 1 when one or more than one frame has been lost. bit 5: reserved . bit 4: mx_lex - maximum frame length exceed set to 1 when programmed maximum frame length defined set4.reg6 and set4.reg7 are exceeded. this bit is frame status fifo bottom. reading this bit will return a valid value when fsfdr=1 (frame status fifo data ready). bit 3: phy_err - physical error during receiving data, any physical layer error, defined irda 1.1, will be set to 1 in this bit. this bit is frame status fifo bottom. reading this bit will return a valid value when fsfdr=1 (frame status fifo data ready). bit 2: crc_err - crc error set to 1 when a bad crc is received in a frame. this crc belongs to physical layer defined in irda 1.1. this bit is frame status fifo bottom. reading t his bit will return a valid value when fsfdr=1 (frame status fifo data ready). bit 1: rx_ov - received data overrun set to 1 when received data in fifo overrun occurs. bit 0: fsf_ov - frame status fifo overrun set to 1 when frame status fifo overrun occurs. 4.3.7.5 set5.reg6, 7 - receiver frame length fifo (rflfl/rflfh) or lost frame number (lst_nu) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rflfl/ lst_nu bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 reset value 0 0 0 0 0 0 0 0 rfl fh - - - bit 12 bit 11 bit 10 bit 9 bit 8 reset value 0 0 0 0 0 0 0 0 receiver frame length fifo (rflfl/rflfh): these registers are 13 - bit. reading these registers will return received frame length. when read the register of rflfh will pop - up another frame status and frame length if fsfdr=1 (set5.reg4.bit7).
w83877atf publication release date: april 1998 - 70 - version 0.51 lost frame number (lst_nu): when lst_fr=1 (set5.reg4. bit6), reg6 is replaced to lst_nu, that is 8 - bit register and read rflfh will return 0. when read the register of rflfh will pop - up another fram e status and frame length if fsfdr=1 (set5.reg4.bit7). 4.3.8 set6 - ir physical layer control registers address offset register name register description 0 ir_cfg2 infrared config register 2 1 mir_pw mir (1.152m bps or 0.576m bps) pulse width 2 sir_pw sir pulse width 3 ssr sets select register 4 hir_fnu high speed infrared flag number 5 reserved - 6 reserved - 7 reserved - 4.3.8.1 set6.reg0 - infrared config register 2 (ir_cfg2) this register config ask - ir, mir, fir operation function. reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ir_cfg2 shmd_n shdm_n fir_crc mir_crc - inv_crc dis_crc - reset value 0 0 1 0 0 0 0 0 bit 7: shmd_n - ask - ir modulation disable shmd_n modulation mode 0 sout modulate 500k hz square wave 1 re - rout sout bit 6: shdm_n - ask - ir demodulation disable shdm_n demodulation mode 0 demodulation 500k hz 1 re - rout sin
w83877atf publication release date: april 1998 - 71 - version 0.51 bit 5: fir_crc - fir (4m bps) crc type fir_crc crc type 0 16 - bit crc 1 32 - bit crc note that the 16/32 - bit crc are defined in irda 1.1 physical layer. bit 4: mir_crc - mir (1.152m/0.576m bps) crc type mir_crc crc type 0 16 - bit crc 1 32 - bit crc bit 2: inv_crc - inverting crc write to 1 causes crc inverted output in physical layer. bit 1: dis_crc - disable crc write to 1 causes the transmitter not to transmit crc in physical layer. bit 0: reserved , write 1. 4.3.8.2 set6.reg1 - mir (1.152m/0.576m bps) pulse width reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 mir_pw - - - m_pw4 m_pw3 m_pw2 m_pw1 m_pw0 reset valu e 0 0 0 0 1 0 1 0 this 5 - bit register is set mir output pulse width. m_pw4~0 mir pulse width (1.152m bps) mir output width (0.576m bps) 00000 0 ns 0 ns 00001 20.83 ns 41.66 ns 00010 41.66 (==20.83*2) ns 83.32 (==41.66*2) ns ... ... ... k 10 20.83* k 10 ns 41.66* k 10 ns ... ... ... 11111 645 ns 1290 ns
w83877atf publication release date: april 1998 - 72 - version 0.51 4.3.8.3 set6.reg2 - sir pulse width reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 sir_pw - - - s_pw4 s_pw3 s_pw2 s_pw1 s_pw0 reset value 0 0 0 0 0 0 0 0 this 5 - bit register is set sir output pulse width. s_pw4~0 sir output pulse width 00000 3/16 bit time of uart 01101 1.6 us others 1.6 us 4.3.8.4 set6.reg3 - set select register a write to this register will result in going to other set. reading this register returns f0 16 . reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr ssr7 ssr6 ssr5 ssr4 ssr3 ssr2 srr1 srr0 default value 1 1 1 1 0 0 0 0 4.3.8.5 set6.reg4 - high speed infrared beginning flag number (hir_fnu) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 hir_fnu m_fg 3 m_fg2 m_fg1 m_fg0 f_fl3 f_fl2 f_fl1 f_fl0 reset value 0 0 1 0 1 0 1 0 bit 7~4: m_fg3~0 - mir beginning flag number these bits define the number of transmitter start flag of mir. note that the number of mir start flag should be equal to or more than two which is defined in irda 1.1 physical layer. the default value is 2.
w83877atf publication release date: april 1998 - 73 - version 0.51 m_fg3~0 beginning flag number 0000 reserved 0001 1 0010 2 (default) 0011 3 0100 4 0101 5 0110 6 0111 8 1000 10 1001 12 1010 16 1011 20 1100 24 1101 28 1110 32 1111 reserved bit 3~0: f_fg3~0 - fir beginning flag number these bits define the number of transmitter preamble flag in fir. note that the number of fir start flag should be equal to sixteen which is defined in irda 1.1 physical layer. the default value is 16. m_fg3~0 beginning flag number 0000 reserved 0001 1 0010 2 0011 3 0100 4 0101 5 0110 6 0111 8 1000 10 1001 12 1010 16 (default) 1011 20 1100 24 1101 28 1110 32 1111 reserved
w83877atf publication release date: april 1998 - 74 - version 0.51 4.3.9 set7 - remote control and ir module selection regist ers address offset register name register description 0 rir_rxc remote infrared receiver control 1 rir_txc remote infrared transmitter control 2 rir_cfg remote infrared config register 3 ssr sets select register 4 irm_sl1 infrared module (front end) select 1 5 irm_sl2 infrared module select 2 6 irm_sl3 infrared module select 3 7 irm_cr infrared module control register 4.3.9.1 set7.reg0 - remote infrared receiver control (rir_rxc) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rir_rxc rx_fr2 rx_fr1 rx_fr0 rx_fsl4 rx_fsl3 rx_fsl2 rx_fsl1 rx_fsl0 default value 0 0 1 0 1 0 0 1 this register defines frequency ranges of receiver remote ir. bit 7~5: rx_fr2~0 - receiver frequency range 2~0. these bits select the input frequency of the receiver ranges. for the input signal, that is through a band pass filter, i.e., the frequency of the input signal is located at this defined range then the signal will be received. bit 4~0: rx_fsl4~0 - receiver frequency select 4~0. select the receiver operati on frequency.
w83877atf publication release date: april 1998 - 75 - version 0.51 table: low frequency range select of receiver. rx_fr2~0 (low frequency) 001 010 011 rx_fsl4~0 min. max. min. max. min. max. 00010 26.1 29.6 24.7 31.7 23.4 34.2 00011 28.2 32.0 26.7 34.3 25.3 36.9 00100 29.4 33.3 27.8 35.7 26.3 38.4 00101 30.0 34.0 28.4 36.5 26.9 39.3 00110 31.4 35.6 29.6 38.1 28.1 41.0 00111 32.1 36.4 30.3 39.0 28.7 42.0 01000 32.8 37.2 31.0 39.8 29.4 42.9 01001 33.6* 38.1* 31.7 40.8 30.1 44.0 01011 34.4 39.0 32.5 41.8 30.8 45.0 01100 36.2 41.0 34.2 44.0 32.4 47.3 01101 37.2 42.1 35.1 45.1 33.2 48.6 01111 38.2 43.2 36.0 46.3 34.1 49.9 10000 40.3 45.7 38.1 49.0 36.1 52n.7 10010 41.5 47.1 39.2 50.4 37.2 54.3 10011 42.8 48.5 40.4 51.9 38.3 56.0 10101 44.1 50.0 41.7 53.6 39.5 57.7 10111 45.5 51.6 43.0 55.3 40.7 59.6 11010 48.7 55.2 46.0 59.1 43.6 63.7 11011 50.4 57.1 47.6 61.2 45.1 65.9 11101 54.3 61.5 51.3 65.9 48.6 71.0 note that the other non - defined values are reserved. table: high frequency range select of receiver rx_fr2~0 (high frequency) 001 rx_fsl4~0 min. max. 00011 355.6 457.1 01000 380.1 489.8 01011 410.3 527.4 note that the other non - defined values are reserved.
w83877atf publication release date: april 1998 - 76 - version 0.51 table: sharp ask - ir receiver frequency range select. rx_fsl4~0 (sharp ask - ir) rx_fr2~ 0 001 010 011 100 101 110 - 480.0* 533.3* 457.1 564.7 436.4 600.0 417.4 640.0 400.0 685.6 384.0 738.5 note that the other non - defined values are reserved. 4.3.9.1 set7.reg1 - remote infrared transmitter control (rir_txc) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rir_txc tx_pw 2 tx_pw1 tx_pw0 tx_fsl4 tx_fsl3 tx_fsl2 tx_fsl1 tx_fsl0 default value 0 1 1 0 1 0 0 1 this register defines the transmitter frequency and pulse width of remote ir. bit 7~5: tx_pw2~0 - transmitter pulse width 2~ 0. selects the transmission pulse width. tx_pw2~0 low frequency high frequency 010 6 m s 0.7 m s 011 7 m s 0.8 m s 100 9 m s 0.9 m s 101 10.6 m s 1.0 m s note that the other non - defined tx_pw are reserved. bit 4~0: tx_fsl4~0 - transmitter frequency select 4~0. selects the transmission frequency. table: low frequency selected. tx_fsl4~0 low frequency 00011 30k hz 00100 31k hz ... ... 11101 56k hz note that the other non - defined tx_fsl4~0 are reserved.
w83877atf publication release date: april 1998 - 77 - version 0.51 table: high frequency selected. tx_fsl4~0 high frequency 00011 400k hz 01000 450k hz 01011 480k hz note that the other non - defined tx_fsl4~0 are reserved. 4.3.9.2 set7.reg2 - remote infrared config register (rir_cfg) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 rir_cfg p_pnb smp_m rxcfs - tx_cfs rx_dm tx_mm1 tx_mm0 default value 0 0 0 0 0 0 0 0 bit 7: p_pnb: programming pulse number coding. write to 1 causes programming pulse number coding to be selected. the code format is defined as follows. b7 b6 b5 b4 b2 b1 b0 b3 bit value (number of bits) - 1 if the bit value is set to 0, then the high pulse will be transmitted/received. if the bit value is set to 1, then no energy will be transmitted/received. bit 6 : smp_m - sampling mode. to choose receiver sampling mode. write to 0 causes t - period sampling to be used, so that the t - period is programmed uart baud rate. write to 1 causes direct use of programmed baud rate to do over - sampling. bit 5: rxcfs - receiver carry frequency select rxcfs selected frequency 0 30k ~ 56k hz 1 400k ~ 480k hz bit 4: reserved, write 0.
w83877atf publication release date: april 1998 - 78 - version 0.51 bit 3: tx_cfs - transmitter carry frequency select. sets low speed or high speed transmitter carry frequency. tx_fcs selected fr equency 0 30k ~ 56k hz 1 400k ~ 480k hz bit 2: rx_dm - receiver demodulation mode. rx_dm demodulation mode 0 enables internal decoder 1 disables internal decoder bit 1~0: tx_mm1~0 - transmitter modulation mode 1~0 tx_mm1~0 tx modulation mode 00 continuously sends pulse for logic 0 01 8 pulses for logic 0 and no pulse for logic 1. 10 6 pulses for logic 0 and no pulse for logic 1 11 reserved. 4.3.9.3 set7.reg3 - sets select register (ssr) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ssr bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 default value 1 1 1 1 0 1 0 0 reading this register returns f4 16 . a write to this register causes switch to other set. 4.3.9.4 set7.reg4 - infrared module (front end) select 1 (irm_sl1) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 irm_sl1 ir_msp sir_sl2 sir_sl1 sir_sl0 - air_sl2 air_sl1 air_sl0 default value 0 0 0 0 0 0 0 0
w83877atf publication release date: april 1998 - 79 - version 0.51 bit 7: ir_msp - ir mode select pulse write to 1 causes the transmitter (irtx) to send a 64 m s pulse to setup a special ir front - end operational mode. when ir front - end module uses mode select pin (md) and transmitter ir pulse (irtx) to switch high speed ir (such as fir or mir) or low speed ir (sir or ask - ir), this bit should be used. bit 6~4: sir_sl2~0 - sir (serial ir) mode select. these bits are to program the operational mode of the sir front - end module. these values of sir_sl2~0 will automatically load to pins of ir_sl2~0, respectively, when (1) am_fmt=1 (automatic format, in set7 .reg7.bit7), (2) the mode of advanced uart is set to sir (ad_md2~0, in set0.reg4.bit7~0). bit 3: reserved, write 0. bit 2~0: air_sl2~0 - ask - ir mode select. these bits will setup the operational mode of ask - ir front - end module when am_fmt=1 and ad_md2~0 are set to ask - ir mode. these values will automatically load to ir_sl2~0, respectively. 4.3.9.5 set7.reg5 - infrared module (front end) select 2 (irm_sl2) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 irm_sl2 - fir_sl2 fir_sl1 fir_sl0 - mir_sl 2 mir_sl1 mir_sl0 default value 0 0 0 0 0 0 0 0 bit 7: reserved, write 0. bit 6~4: fir_sl2~0 - fir mode select. these bits setup the operational mode of fir front - end module when am_fmt=1 and ad_md2~0 set to fir mode. these values will automatically load to ir_sl2~0, respectively. bit 3: reserved, write 0. bit 2~0: mir_sl2~0 - mir mode select. these bits setup the mir operational mode when am_fmt=1 and ad_md2~0 set to mir mode. these values will be automatically loaded to ir_sl2~0, respectively. 4.3.9.6 set7.reg6 - infrared module (front end) select 3 (irm_sl3) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 irm_sl3 - lrc_sl2 lrc_sl1 lrc_sl0 - hrc_sl2 hrc_sl1 hrc_sl0 default value 0 0 0 0 0 0 0 0
w83877atf publication release date: april 1998 - 80 - version 0.51 bit 7: reserved, write 0. bit 6~4: lrc_sl2~0 - low speed remote ir mode select. these bits setup the operational mode of low speed remote ir front - end module when am_fmt=1 and ad_md2~0 set to remote ir mode. these values will automatically load to ir_sl2~0, respectively. bit 3: reserved, wr ite 0. bit 2~0: hrc_sl2~0 - high speed remote ir mode select. these bits setup the operational mode of high speed remote ir front - end module when am_fmt=1 and .ad_md2~0 set to remote ir mode. these values will automatically load to ir_sl2~0, respectively. 4.3.9.7 set7.reg7 - infrared module control register (irm_cr) reg. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 irm_cr am_fmt irx_msl irsl0d rxinv txinv - - - default value 0 0 0 0 0 0 0 0 bit 7: am_fmt - automatic format write to 1 enab les automatic format ir front - end module. this bit will affect the output of ir_sl2~0, which is referred by ir front - end module selection (set7.reg4~6) bit 6: irx_msl - ir receiver module select select the receiver input path from the ir front end module if ir module has a separated high speed and low speed receiver path. if the ir module has only one receiving path, then this bit should be set to 0. irx_msl receiver pin selected 0 irrx (low/high speed) 1 irrxh (high speed) bit 5: irsl0d - directi on of irsl0 pin select function for irrxh or irsl0 because they share a common pin with different input/output direction. irsl0_d function 0 irrxh (i/p) 1 irsl0 (o/p)
w83877atf publication release date: april 1998 - 81 - version 0.51 table: ir receiver input pin selection irsl0d irx_msl aux_rx high speed ir selected ir pin 0 0 0 x irrx 0 0 1 x irrxh 0 1 x 0 irrx 0 1 x 1 irrxh 1 0 0 x irrx 1 0 1 x reserved 1 1 x 0 irrx 1 1 x 1 reserved note that (1) aux_rx is defined in set5.reg4.bit4, (2) high speed ir includes mir (1.152m or 0.576m bps) and fir (4m bp s), (3) irrx is the input of the low speed or high speed ir receiver, irrxh is the input of the high speed ir receiver. bit 4: rxinv - receiving signal invert write to 1 inverts the receiving signal. bit 3: txinv - transmitting signal invert write to 1 inverts the transmitting signal. bit 2~0: reserved, write 0.
w83877atf publication release date: april 1998 - 82 - version 0.51 4.0 parallel port 4.1 printer interface logic the parallel port of the w83877atf makes possible the attachment of various devices that accept eight bits of parallel data at standard ttl level. the w83877atf supports an ibm xt/at compatible parallel port (spp), bi - directional parallel port (bpp), enhanced parallel port (epp), extended capabilities parallel port (ecp), extension fdd mode (extfdd), and extension 2fdd mode (ext2fdd) on the parallel port. refer to the configuration registers for more information on disabling, power - down, and on selecting the mode of operation. table 4 - 1 shows the pin definitions for different modes of the parallel port. table 4 - 1 - a parallel port connnector and pin definition for spp/epp/ecp modes host connector pin number of w83877atf pin attribute spp epp ecp 1 19 o nstb nwrite nstb, hostclk 2 - 9 9 - 14,16 - 17 i/o pd<0:7> pd<0:7> pd<0:7> 10 26 i nack intr nack, periphclk 11 24 i busy nwait busy, periphack 2 12 27 i pe pe peerror, nackreverse 2 13 28 i slct select slct, xflag 14 20 o nafd ndstrb nafd, hostack 2 15 29 i nerr nerror nfault 1 , nperiphrequest 2 16 21 o ninit ninit ninit 1 , nreverserqst 2 17 22 o nslin nastrb nslin 1 , ecpmode 2 notes: n : active low 1. compatible mode 2. high speed mode 3. for more informatio n, refer to the ieee 1284 standard.
w83877atf publication release date: april 1998 - 83 - version 0.51 table 4 - 1 - b parallel port connector and pin definition for extfdd and ext2fdd modes host connector pin number of w83877atf pin attribute spp pin attribute ext2fdd pin attribute extfdd 1 19 o nstb --- --- --- --- 2 9 i/o pd0 i index 2 i index 2 3 10 i/o pd1 i trak 02 i 4 11 i/o pd2 i wp 2 i 5 12 i/o pd3 i rdata 2 i rdata 2 6 13 i/o pd4 i dskchg 2 i dskchg 2 7 14 i/o pd5 --- --- --- --- 8 15 i/o pd6 od moa 2 --- --- 9 16 i/o pd7 od dsa 2 --- --- 10 26 i nack od dsb 2 od 11 24 i busy od mob 2 od 12 27 i pe od wd 2 od wd 2 13 28 i slct od we 2 od we 2 14 20 o nafd od rwc 2 od rwc 2 15 29 i nerr od nerr 2 od 16 21 o ninit od dir 2 od dir 2 17 22 o nslin od step 2 od
w83877atf publication release date: april 1998 - 84 - version 0.51 4.2 enhanced parallel port (epp) table 4 - 2 printer mode and epp register address a2 a1 a0 register note 0 0 0 data port (r/w) 1 0 0 1 printer status buffer (read) 1 0 1 0 printer control latch (write) 1 0 1 0 printer control swapper (read) 1 0 1 1 epp address port (r/w) 2 1 0 0 epp data port 0 (r/w) 2 1 0 1 epp data port 1 (r/w) 2 1 1 0 epp data port 2 (r/w) 2 1 1 1 epp data port 2 (r/w) 2 notes: 1. these registers are available in all modes. 2. these registers are available only in epp mode. 4.2.1 data swapper the system microprocessor can read the contents of the printer's data latch by reading the data swapper. 4.2.2 printer status buffer the system microprocessor can read the printer status by reading the address of the printer status buffer. the bit definitions are as follows: 1 1 1 2 3 5 4 6 7 0 tmout error slct pe busy ack bit 7: this signal is active during data entry, when the printer is off - line during printing, when the print head is changing position, or during an error state. when this signal is active, the printer is busy and cannot accept data. bit 6: this bit represents the current state of the printer's ack signal. a 0 means the printer has received a character and is ready to accept another. normally, this signal will be active for approximately 5 microseconds before busy stops. bit 5: a 1 means the printer has detected the end of paper.
w83877atf publication release date: april 1998 - 85 - version 0.51 bit 4: a 1 means the printer is se lected. bit 3: a 0 means the printer has encountered an error condition. bit 1, 2: these two bits are not implemented and are logic one during a read of the status register. bit 0: this bit is valid in epp mode only. it indicates that a 10 m s time - out has occurred on the epp bus. a logic 0 means that no time - out error has occurred; a logic 1 means that a time - out error has been detected. writing a logic 1 to this bit will clear the time - out status bit; writing a logic 0 has no effect. 4.2.3 printer contro l latch and printer control swapper the system microprocessor can read the contents of the printer control latch by reading the printer control swapper. bit definitions are as follows: 1 1 1 2 3 4 5 6 7 0 strobe auto fd slct in irq enable dir init bit 7, 6: these two bits are a logic one during a read. they can be written. bit 5: direction control bit when this bit is a logic 1, the parallel port is in input mode (read); when it is a logic 0, the parallel port is in output mode (write). this bit can be read and written. in spp mode, this bit is invalid and fixed at zero. bit 4: a 1 in this position allows an interrupt to occur when ack changes from low to high. bit 3: a 1 in this bit position selects the printer. bit 2: a 0 starts the printer (50 microsecond pulse, minimum). bit 1: a 1 causes the printer to line - feed after a line is printed. bit 0: a 0.5 microsecond minimum high active pulse clocks data into the printer. valid data must be present for a minimum of 0.5 microseconds before and after the strobe pulse.
w83877atf publication release date: april 1998 - 86 - version 0.51 4 .2.4 epp address po rt the address port is available only in epp mode. bit definitions are as follows: 1 2 3 4 5 6 7 0 pd0 pd1 pd2 pd3 pd5 pd4 pd6 pd7 the contents of db0 - db7 are buffered (non - inverting) and output to ports pd0 - pd7 during a write operation. the leading edge of iow c auses an epp address write cycle to be performed, and the trailing edge of iow latches the data for the duration of the epp write cycle. pd0 - pd7 ports are read during a read operation. the leading edge of ior causes an epp address read cycle to be performed and the da ta to be output to the host cpu. 4.2.5 epp data port 0 - 3 these four registers are available only in epp mode. bit definitions of each data port are as follows: 1 2 3 4 5 6 7 0 pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 when accesses are made to any epp data port, the contents of db0 - db7 are buffered (non - inverting) and output to the ports pd0 - pd7 during a write operation. the leading edge of iow causes an epp data write cycle to be performed, and the trailing edge of iow latches the data for the duration of the epp write cycle. dur ing a read operation, ports pd0 - pd7 are read, and the leading edge of ior causes an epp read cycle to be performed and the data to be output to the host cpu.
w83877atf publication release date: april 1998 - 87 - version 0.51 4 .2.6 bit map of parallel port and epp registers register 7 6 5 4 3 2 1 0 data port (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 status buffer (read) busy ack pe slct error 1 1 tmout control swapper (read) 1 1 1 irqen slin init autofd strobe control latch (write) 1 1 dir irq slin init autofd strobe epp address port (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 0 (r/w) pd7 pd 6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 1 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 2 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 epp data port 3 (r/w) pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 4.2.7 epp pin descriptions epp name type epp description nwrite o denotes an address or data read or write operation. pd<0:7> i/o bi - directional epp address and data bus. intr i used by peripheral device to interrupt the host. nwait i inactive to acknowledge that data transfer is completed. active to indicate t hat the device is ready for the next transfer. pe i paper end; same as spp mode. select i printer selected status; same as spp mode. ndstrb o this signal is active low. it denotes a data read or write operation. nerror i error; same as spp mode. ninits o this signal is active low. when it is active, the epp device is reset to its initial operating mode. nastrb o this signal is active low. it denotes an address read or write operation. 4.2.8 epp operation when the epp mode is selected in the configu ration register, the standard and bi - directional modes are also available. the pdx bus is in the standard or bi - directional mode when no epp read, write, or address cycle is currently being executed. in this condition all output signals are set by the spp control port and the direction is controlled by dir of the control port. a watchdog timer is required to prevent system lockup. the timer indicates that more than 10 m s have elapsed from the start of the epp cycle to the time wait is de - asserted. the current epp cycle is aborted when a time - out occurs. the time - out condition is indicated in status bit 0.
w83877atf publication release date: april 1998 - 88 - version 0.51 epp operation the epp operates on a two - phase cycle. first, the host selects the register within the device for subsequent operations. second, the host performs a series of read and/or write byte operations to the selected register. four operations are supported on the epp: address write, data write, address read, and data read. all operations on the epp device are performed asynchronously. epp version 1.9 op eration the epp read/write operation can be completed under the following conditions: a. if the nwait is active low, when the read cycle (nwrite inactive high, ndstrb/nastrb active low) or write cycle (nwrite active low, ndstrb/nastrb active low) starts, the read/write cycle proceeds normally and will be completed when nwait goes inactive high. b. if nwait is inactive high, the read/write cycle will not start. it must wait until nwait changes to active low, at which time it will start as described above. ep p version 1.7 operation the epp read/write cycle can start without checking whether nwait is active or inactive. once the read/write cycle starts, however, it will not terminate until nwait changes from active low to inactive high. 4.3 extended capabilities parallel (ecp) port this port is software and hardware compatible with existing parallel ports, so it may be used in a standard printer mode if ecp is not required. it provides an automatic high burst - bandwidth channel that supports dma for ecp in bot h the forward (host to peripheral) and reverse (peripheral to host) directions. small fifos are used in both forward and reverse directions to improve the maximum bandwidth requirement. the size of the fifo is 16 bytes. the ecp port supports an automatic handshake for the standard parallel port to improve compatibility mode transfer speed. the ecp port supports run - length - encoded (rle) decompression (required) in the hardware. compression is accomplished by counting identical bytes and transmitting an rle byte that indicates how many times the next byte is to be repeated. the hardware support for compression is optional. for more information about the ecp protocol, refer to the extended capabilities port protocol and isa interface standard.
w83877atf publication release date: april 1998 - 89 - version 0.51 4.3.1 ecp register and mode definitions name address i/o ecp modes function data base+000h r/w 000 - 001 data register ecpafifo base+000h r/w 011 ecp fifo (address) dsr base+001h r all status register dcr base+002h r/w all control register cfifo base+400h r/w 010 pa rallel port data fifo ecpdfifo base+400h r/w 011 ecp fifo (data) tfifo base+400h r/w 110 test fifo cnfga base+400h r 111 configuration register a cnfgb base+401h r/w 111 configuration register b ecr base+402h r/w all extended control register note: the base addresses are specified by cr23, which are determined by configuration register or hardware setting. mode description 000 spp mode 001 ps/2 parallel port mode 010 parallel port data fifo mode 011 ecp parallel port mode 100 epp mode (if this o ption is enabled in the cr9 and cr0 to select ecp/epp mode) 101 reserved 110 test mode 111 configuration mode note: the mode selection bits are bit 7 - 5 of the extended control register. 4.3.2 data and ecpafifo port modes 000 (spp) and 001 (ps/2) (data port) during a write operation, the data register latches the contents of the data bus on the rising edge of the input. the contents of this register are output to the pd0 - pd7 ports. during a read operation, ports pd0 - pd7 are read and output to the h ost. the bit definitions are as follows:
w83877atf publication release date: april 1998 - 90 - version 0.51 7 6 5 4 3 2 1 0 pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 mode 011 (ecp fifo - address/rle) a data byte written to this address is placed in the fifo and tagged as an ecp address/rle. the hardware at the ecp port transmits this byte to the peripheral automatically. the operation of this register is defined only for the forward direction. the bit definitions are as follows: 7 6 5 4 3 2 1 0 address or rle address/rle 4.3.3 device status register (dsr) these bits are at low level during a read of the pr inter status register. the bits of this status register are defined as follows: 7 6 5 4 3 2 1 0 nfault select perror nack nbusy 1 1 1 bit 7: this bit reflects the complement of the busy input. bit 6: this bit reflects the nack input. bit 5: this bit reflects the perror input. bit 4: this bit reflects the select input. bit 3: this bit reflects the nfault input. bit 2 - 0: these three bits are not implemented and are always logic one during a read.
w83877atf publication release date: april 1998 - 91 - version 0.51 4.3.4 device control register (dcr) the bit definitions are as follows: 7 6 5 4 3 2 1 0 1 1 strobe autofd ninit select in direction ackint en bit 6, 7: these two bits are logic one during a read and cannot be written. bit 5: this bit has no effect and the direction is always out if mode = 000 or mode = 010. direction is valid in all other modes. 0 the parallel port is in output mode. 1 the parallel port is in input mode. bit 4: interrupt request enable. when this bit is set to a high level, it may be used to enable interrupt requests from the parallel port to the cpu due to a low to high transition on the ack input. bi t 3: this bit is inverted and output to the slin output. 0 the printer is not selected. 1 the printer is selected. bit 2: this bit is output to the init output. bit 1: this bit is inverted and output to the afd output. bit 0: this bit is inverted and output to the stb output. 4.3.5 cfifo (parallel port data fifo) mode = 010 this mode is defined only for the forward direction. the standard parallel port protocol is used by a hardware handshake to the peripheral to transmit bytes written or dmaed from the syste m to this fifo. transfers to the fifo are byte aligned. 4.3.6 ecpdfifo (ecp data fifo) mode = 011 when the direction bit is 0, bytes written or dmaed from the system to this fifo are transmitted by a hardware handshake to the peripheral using the ecp parallel port protocol. transfers to the fifo are byte aligned. when the direction bit is 1, data bytes from the peripheral are read under automatic hardware handshake from ecp into this fifo. reads or dmas from the fifo will return bytes of ecp data to the s ystem.
w83877atf publication release date: april 1998 - 92 - version 0.51 4.3.7 tfifo (test fifo mode) mode = 110 data bytes may be read, written, or dmaed to or from the system to this fifo in any direction. data in the tfifo will not be transmitted to the parallel port lines. however, data in the tfifo may be displayed on the parallel port data lines. 4.3.8 cnfga (configuration register a) mode = 111 this register is a read - only register. when it is read, 10h is returned. this indicates to the system that this is an 8 - bit implementation. 4.3.9 cnfgb (configuratio n register b) mode = 111 the bit definitions are as follows: 7 6 5 4 3 2 1 0 1 1 1 intrvalue compress irqx 0 irqx 1 irqx 2 bit 7: this bit is read - only. it is at low level during a read. this means that this chip does not support hardware rle compression. bit 6: returns the value on the isa irq line to determine possible conflicts. bit 5 - 3: reflect the irq resource assigned for ecp port. cnfgb[5:3] irq resource 000 reflect other irq resources selected by pnp register (default) 001 irq7 010 irq9 011 irq10 100 irq11 101 irq14 110 irq15 111 irq5 bit 2 - 0: these five bits are at high level during a read and can be written .
w83877atf publication release date: april 1998 - 93 - version 0.51 4.3.10 ecr (extended control register) mode = all this register controls the extended ecp parallel port functions. the bit definitions are follows: 7 6 5 4 3 2 1 0 empty full service intr dma en nerrintr en mode mode mode bit 7 - 5: these bits are read/write and select the mode. 000 standard parallel port mode. the fifo is reset in this mode. 001 ps/2 parallel port mode. this is the same as 000 except t hat direction may be used to tri - state the data lines , and reading the data register returns the value on the data lines and not the value in the data register. 010 parallel port fifo mode. this is the same as 000 except that bytes are written or dmaed to the fifo. fifo data are automatically transmitted using the standard parallel port protocol. this mode is useful only when direction is 0. 011 ecp parallel port mode. when the direction is 0 (forward direction), bytes placed into the ecpdfifo and bytes w ritten to the ecpafifo are placed in a single fifo and transmitted automatically to the peripheral using ecp protocol. when the direction is 1 (reverse direction) bytes are moved from the ecp parallel port and packed into bytes in the ecpdfifo. 100 selects epp mode. in this mode, epp is active if the epp supported option is selected. 101 reserved. 110 test mode. the fifo may be written and read in this mode, but the data will not be transmitted on the parallel port. 111 configuration mode. the confga an d confgb registers are accessible at 0x400 and 0x401 in this mode. bit 4: read/write (valid only in ecp mode) 1 disables the interrupt generated on the asserting edge of nfault. 0 enables an interrupt pulse on the high to low edge of nfault. if nfault is asserted (interrupt) an interrupt will be generated and this bit is written from a 1 to 0. bit 3: read/write 1 enables dma. 0 disables dma unconditionally.
w83877atf publication release date: april 1998 - 94 - version 0.51 bit 2: read/write 1 disables dma and all of the service interrupts. 0 enables one of the following cases of interrupts. when one of the service interrupts has occurred, the serviceintr bit is set to a 1 by hardware. this bit must be reset to 0 to re - enable the interrupts. writing a 1 to this bit will not cause an interrupt. (a) dmaen = 1: during dma this bit is set to a 1 when terminal count is reached. (b) dmaen = 0 direction = 0: this bit is set to 1 whenever there are writeintr threshold or more bytes free in the fifo. (c) dmaen = 0 direction = 1: this bit is set to 1 whenever there are rea dintr threshold or more valid bytes to be read from the fifo. bit 1: read only 0 the fifo has at least 1 free byte. 1 the fifo cannot accept another byte or the fifo is completely full. bit 0: read only 0 the fifo contains at least 1 byte of data. 1 the fifo is completely empty. 4.3.11 bit map of ecp port registers d7 d6 d5 d4 d3 d2 d1 d0 note data pd7 pd6 pd5 pd4 pd3 pd2 pd1 pd0 ecpafifo addr/rle address or rle field 2 dsr nbusy nack perror select nfault 1 1 1 1 dcr 1 1 directio ac kinten selectin ninit autofd strobe 1 cfifo parallel port data fifo 2 ecpdfifo ecp data fifo 2 tfifo test fifo 2 cnfga 0 0 0 1 0 0 0 0 cnfgb compress intrvalue 1 1 1 1 1 1 ecr mode nerrintren dmaen serviceintr full empty notes: 1. these registers are available in all modes. 2. all fifos use one common 16 - byte fifo.
w83877atf publication release date: april 1998 - 95 - version 0.51 4 .3.12 ecp pin descriptions name type description nstrobe (hostclk) o the nstrobe registers data or address into the slave on the asserting edge during write o perations. this signal handshakes with busy. pd<7:0> i/o these signals contains address or data or rle data. nack (periphclk) i this signal indicates valid data driven by the peripheral when asserted. this signal handshakes with nautofd in reverse. busy (periphack) i this signal deasserts to indicate that the peripheral can accept data. it indicates whether the data lines contain ecp command information or data in the reverse direction. when in reverse direction, normal data are transferred when busy (pe riphack) is high and an 8 - bit command is transferred when it is low. perror (nackreverse) i this signal is used to acknowledge a change in the direction of the transfer (asserted = forward). the peripheral drives this signal low to acknowledge nreverserequest. the host relies upon nackreverse to determine when it is permitted to drive the data bus. select (xflag) i indicates printer on line. nautofd (hostack) o requests a byte of data from the peripheral when it is asserted. this signal indicates whether the data lines contain ecp address or data in the forward direction. when in forward direction, normal data are transferred when nautofd (hostack) is high and an 8 - bit command is transferred when it is low. nfault (nperiphrequest) i generates an error interrupt when it is asserted. this signal is valid only in the forward direction. the peripheral is permitted (but not required) to drive this pin low to request a reverse transfer during ecp mode. ninit (nreverserequest) o this signal sets the transfer di rection (asserted = reverse, deasserted = forward). this pin is driven low to place the channel in the reverse direction. nselectin (ecpmode) o this signal is always deasserted in ecp mode.
w83877atf publication release date: april 1998 - 96 - version 0.51 4.3.13 ecp operation the host must negotiate on the parallel port to determine if the peripheral supports the ecp protocol before ecp operation. after negotiation, it is necessary to initialize some of the port bits. the following are required: (a) set direction = 0, enabling the drivers. (b) set strob e = 0, causing the nstrobe signal to default to the deasserted state. (c) set autofd = 0, causing the nautofd signal to default to the deasserted state. (d) set mode = 011 (ecp mode) ecp address/rle bytes or data bytes may be sent automatically by writing the ecpafifo or ecpdfifo, respectively. mode switching software will execute p1284 negotiation and all operation prior to a data transfer phase under programmed i/o control (mode 000 or 001). hardware provides an automatic control line hands hake, moving data between the fifo and the ecp port only in the data transfer phase (mode 011 or 010). if the port is in mode 000 or 001, it may switch to any other mode. if the port is not in mode 000 or 001 , it can only be switched into mode 000 or 001. the direction can be changed only in mode 001. when in extended forward mode, the software should wait for the fifo to be empty before switching back to mode 000 or 001. in ecp reverse mode the software waits for all the data to be read from the fifo befor e changing back to mode 000 or 001. command/data ecp mode allows the transfer of normal 8 - bit data or 8 - bit commands. in the forward direction, normal data are transferred when hostack is high and an 8 - bit command is transferred when hostack is low. the most significant bits of the command indicate whether it is a run - length count (for compression) or a channel address. in the reverse direction, normal data are transferred when periphack is high and an 8 - bit command is transferred when periphack is low. the most significant bit of the command is always zero. data compression the w83877atf supports run length encoded (rle) decompression in hardware and can transfer compressed data to a peripheral. note that odd (rle) compression in hardware is not supported. in order to transfer data in ecp mode, the compression count is written to the ecpafifo and the data byte is written to the ecpdfifo. 4.3.14 fifo operation the fifo threshold is set in configuration register 5. all data transfers to or from the parallel port can proceed in dma or programmed i/o (non - dma) mode, as indicated by the selected mode. the fifo is used by selecting the parallel port fifo mode or ecp parallel port mode. after a reset, the fifo is disabled.
w83877atf publication release date: april 1998 - 97 - version 0.51 4.3.15 dma transfers dma transfers are always to or from the ecpdfifo, tfifo, or cfifo. the dma uses the standard pc dma services. the ecp requests dma transfers from the host by activating the pdrq pin. the dma will empty or fill the fifo using the appropriate direction and mode. when the te rminal count in the dma controller is reached, an interrupt is generated and serviceintr is asserted, which will disable the dma. 4.3.16 programmed i/o (non - dma) mode the ecp or parallel port fifos can also be operated using interrupt driven programmed i/o. programmed i/o transfers are to the ecpdfifo at 400h and ecpafifo at 000h , or from the ecpdfifo located at 400h, or to/from the tfifo at 400h. the host must set the direction, state, dmaen = 0 and serviceintr = 0 in the programmed i/o transfers. the ec p requests programmed i/o transfers from the host by activating the irq pin. the programmed i/o will empty or fill the fifo using the appropriate direction and mode. 4.4 extension fdd mode (extfdd) in this mode, the w83877atf changes the printer interface pins to fdc input/output pins, allowing the user to install a second floppy disk drive (fdd b) through the db - 25 printer connector. the pin assignments for the fdc input/output pins are shown in table 5 - 1. after the printer interface is set to extfdd mo de, the following occur: (1) pins mob and dsb will be forced to inactive state. (2) pins dskchg , rdata , wp , trak 0 , index will be logically ored with pins pd4 - pd0 to serve as input signals to the fdc. (3) pins pd4 - pd0 each will have an internal resistor of about 1k ohm to serve as pull - up resistor for fdd open drain/collector output. (4) if the parallel port is set to extfdd mode after the system has booted dos or another operating system, a warm reset is needed to enable the system to recognize the extension floppy drive. 4.5 extension 2fdd mode (ext2fdd) in this mode, the w83877atf changes the printer interface pins to fdc input/output pins, allowing the user to install two external floppy disk drives through the db - 25 printer connector to replace internal floppy disk drives a and b. the pin assignments for the fdc input/output pins are shown in table 5 - 1. after the printer interface is set to extfdd mode, the following occur: (1) pins moa , dsa , mob , and dsb will be forced to inactive state. (2) pins dskchg , rdata , wp , trak 0 , and index will be l ogically ored with pins pd4 - pd0 to serve as input signals to the fdc. (3) pins pd4 - pd0 each will have an internal resistor of about 1k ohm to serve as pull - up resistor for fdd open drain/collector output. (4) if the parallel port is set to ext2fdd mode after the system has booted dos or another operating system, a warm reset is needed to enable the system to recognize the extension floppy drive.
w83877atf publication release date: april 1998 - 98 - version 0.51 5.0 plug and play c onfiguration a powerful new plug - and - play function has been built into the w83877atf to h elp simplify the task of setting up a computer environment. with appropriate support from bios manufacturers, the system designer can freely allocate winbond i/o devices (i.e., the fdc, prt and uart ) in the pc's i/o space (100h - 3ffh). in addition, the w83877atf also provides 8 interrupt requests and 3 dma pairs for designers to assign in interfacing fdcs, uarts, and prts. hence this powerful i/o chip offers greater flexibility for system designers. the pnp feature is implemented through a set of extende d function registers (cr20 to 29). details on configuring these registers are given in section 8. the default values of these pnp - related registers set the system to a configuration compatible with environments designed with previous winbond i/o chips. 6.0 acpi /legacy fea ture and auto power management 6.1 acpi/legacy power management w83877atf supports both acpi and legacy power management models. for the acpi power management, the sci pin is dedicated to the sci interrupt signal for the sci interrupt handler; for the legacy power management, the smi pin is dedicated to the smi interrupt signal for the smi interrupt handler. two register blocks are used for the acpi/legacy power management. they are the pm1 and gpe register blocks. their base addresses are held in the w83877atf configuration registers cr33 and cr34 respectively. configuration registers cr40 to cr45 are for the legacy power management. the above configuration registers hold the interrupt event enable and st atus bits of the smi interrupts. control over the routing of sci and smi interrupts to the output pins is also contained in the above registers. one 24 - bit power management timer is also implemented. it provides an accurate time value used by the system software to measure and profile system idleness. 6.2 device(auto) power management w83877atf also provides the auto power management function for each device within it. they are the printer port, fdc, uart a, and uart b devices in w83877atf respectively. device idle and trap status are provided to indicate the device's working/sleeping state. device idle timer with programmable initial value is provided for each device, which enters the powerdown state when the powerdown conditions are met. any access to certain registers and external event input will wake up the devices. the global stand - by timer deals with the other logic part excluding the printer port, fdc, uart a , and uart b devices. the global stand - by timer reloads and counts down as soon as the 4 d evices enter the powerdown mode and w83877atf enters the powerdown mode as soon as it expires. once any device is awakened, the global stand - by is also awakened. the initial count values of the devices are held in the configuration registers cr35 to cr39.
w83877atf publication release date: april 1998 - 99 - version 0.51 7.0 serial irq w83877atf supports a serial irq scheme. this allows a signal line to be used to report the legacy isa interrupt requests. because more than one device may need to share the signal serial irq signal line, an open drain signal scheme is use d. the clock source is the pci clock. the serial interrupt is transfered on the irqser signal, one cycle consisting of three frames types: a start frame, several irq/data frame, and one stop frame. the serial interrupt scheme adheres to the serial irq specification for pci system, version 6.0. timing diagrams for irqser cycle start frame timing with source sampled a low pulse on irq1 sl or h h r t s r t s s r r t t irq2 frame irq1 frame irq0 frame start frame start 1 irq1 irq1 none none host controller h=host control sl=slave control r=recovery t=turn-around s=sample pciclk irqser drive source 1. start frame pulse can be 4-8 clocks wide. stop frame timing with host using 17 irqser sampling period t s r t s s r r t next cycle stop frame irq14 stop 1 irq15 none none host controller h=host control i=idle r=recovery t=turn-around s=sample pciclk irqser drive 1. stop pulse is 2 clocks wide for quiet mode, 3 clocks wide for continuous mode. frame irq15 frame iochck frame i 2 h r t start 3 2. there may be none, one or more idle states during the stop frame. 3. the next irqser cycle's start frame pulse may or may not start immediately after the turn-around clock of the stip frame.
w83877atf publication release date: april 1998 - 100 - version 0.51 7.1 start frame there are two modes of operation for the irqser start frame: quiet mode and continuous mode. in the quiet mode, the peripheral drives the serirq signal active low for one clock, and then tri - states it. this brings all the states machines of the peripherals from idle to active states. the host controller will then take over driving irqser signal low in the next clock and will continue driving the irqser low for programmable 3 to 7 clock periods. this makes the total number of clocks lo w for 4 to 8 clock periods. after these clocks, the host controller will drive the irqser high for one clock and then tri - stated. in the continuous mode, only the host controller initiates the start frame to update irq/data line information. the host controller drives the irqser signal low for 4 to 8 period clocks. upon reset, the irqser signal is defaulted to the continuous mode for the host controller to initiate the first start frame. 7.2 irq/data frame once the start frame has been initiated, all the p eripherals must start counting frames based on the rsing edge of the start pulse. each irq/data frame is three clocks: sample phase, recovery phase, and turn - around phase. during the sample phase, the peripheral drives serirq low if the corresponding irq should be active. if the corresponding irq is inactive, then irqser must be left tri - stated. during the recovery phase, the peripheral device drives the irqser high. during the turn - around phase, the peripheral device left the irqser tri - stated. the irq/dat a frame has a number of specific order, as shown in table 7 - 1.
w83877atf publication release date: april 1998 - 101 - version 0.51 table 7 - 1 irqser sampling periods irq/data frame signal sampled # of clocks past start 1 irq0 2 2 irq1 5 3 smi 8 4 irq3 11 5 irq4 14 6 irq5 17 7 irq6 20 8 irq7 23 9 irq8 26 10 irq9 29 11 irq10 32 12 irq11 35 13 irq12 38 14 irq13 41 15 irq14 44 16 irq15 47 17 iochck 50 18 inta 53 19 intb 56 20 intc 59 21 intd 62 32:22 unassign ed 95 7.3 stop frame after all irq/data frames have beencompleted, the host controller will terminate irqser by a stop frame. only the host controller can initiate the stop frame by driving irqser low for 2 or 3 clocks. if the stop frame is low for 2 clocks, the next irqser cycle's sample mode is the quiet mode. if the stop frame is low for 3 clocks, the next irqser cycle's sample mode is the continuous mode. 7.4 reset and initialization after mr reset, irqser slaves are put into the continuous(idle) mod e. the host controller is responsibe for starting the initial irqser cycle to collect system's irq/data default values. the system then follows with the continuous/quiet mode protocol (stop frame pulse width) for subsequent irqser cycles. it's the host controller's responsibility to provide the default values to 8259's and other system logic before the first irqser cycle is performed. for irqser system suspend, insertion, or removal application, the host controller should be programmed into continuous(idle) mode first. this is to guarantee irqser bus in the idle state before the system configuration changes.
w83877atf publication release date: april 1998 - 102 - version 0.51 8.0 extended functi on registers the w83877atf provides many configuration registers for setting up different types of configurations. after power - on reset, the state of the hardware setting of each pin will be latched by the relevant configuration regist er to allow the w83877atf to enter the proper operating configuration. to protect the chip from invalid reads or writes, the configuration registers cannot be accessed by the user. there are four ways to enable the configuration registers to be read or written. hefere (cr0c bit 5) and hefras (cr16 bit 0) can be used to select one out of these four methods of entering the extended function mode , as follows: hefras hefere address and value 0 0 write 88h to the location 250h 0 1 write 89h to the location 2 50h (power - on default) 1 0 write 86h to the location 3f0h twice 1 1 write 87h to the location 3f0h twice first, a specific value must be written once (88h/89h) or twice (86h/87h) to the extended functions enable register (i/o port address 250h or 3f0h). second, an index value (00h - 19h, 20h - 29h, 2ch - 2dh, 31h - 3ah, 40h - 45h) must be written to the extended functions index register (i/o port address 251h or 3f0h) to identify which configuration register is to be accessed. the designer can then access the de sired configuration register through the extended functions data register (i/o port address 252h or 3f1h). after programming of the configuration register is finished, an additional value should be written to efers to exit the extended function mode, to prevent unintentional access to those configuration registers. in the case of efer at 250h, this additional value can be any value other than 88h if hefere = 0 and 89h if hefere = 1. while efer is at 3f0h, this additional value must be aah. the designer can also set bit 6 of cr9 (lockreg) to high to protect the configuration registers against accidental accesses. the configuration registers can be reset to their default or hardware settings only by a cold reset (pin mr = 1). a warm reset will not affect the configuration registers. 8.1 extended functions enable registers (efers) after a power - on reset, the w83877atf enters the default operating mode. before the w83877atf enters the extended function mode, a specific value must be programmed into the ex tended function enable register (efer) so that the extended function register can be accessed. the extended function enable registers are write - only registers. on a pc/at system, their port addresses are 250h or 3f0h (as described in the above section).
w83877atf publication release date: april 1998 - 103 - version 0.51 8.2 extended function index registers (efirs), extended function data registers (efdrs) after the extended function mode is entered, the extended function index register (efir) must be loaded with an index value (0h, 1h, 2h, ..., or 29h) to access config uration register 0 (cr0), configuration register 1 (cr1), configuration register 2 (cr2), and so forth through the extended function data register (efdr). the efirs are write - only registers with port address 251h or 3f0h (as described in section 8.0) on pc/at systems; the efdrs are read/write registers with port address 252h or 3f1h (as described in section 8.0) on pc/at systems. the function of each configuration register is described below. 8.2.1 configuration register 0 (cr0), default = 00h when the d evice is in extended function mode and efir is 0h, the cr0 register can be accessed through efdr. the bit definitions for cr0 are as follows: 7 6 5 4 3 2 1 0 ipd reserved reserved reserved reserved reserved prtmods0 prtmods1 bit 7 - bit 4: reserved. prtmod1 prtmod0 (bit 3, 2): these two bits and prtmod2 (cr9 bit 7) determine the parallel port mode of the w83877atf (as shown in the following table 8 - 1). table 8 - 1 prtmods2 (bit 7 of cr9) prtmods1 (bit 3 of cr0) prtmods0 (bit 2 of cr0) 0 0 0 normal 0 0 1 extfdc 0 1 0 reserved 0 1 1 ext2fdd 1 0 0 reserved 1 0 1 epp/spp 1 1 0 ecp 1 1 1 ecp/epp
w83877atf publication release date: april 1998 - 104 - version 0.51 00 normal mode (default), prtmod2 = 0 default state after power - on reset. in this mode, the w83877atf is fully compatible with the spp and bpp mode. 01 extension fdd mode (extfdd), prtmod2 = 0 10 reserved, prtmod2 = 0 11 extension 2fdd mode (ext2fdd), prtmod2 = 0 00 reserved, prtmod2 = 1 01 epp mode and spp mode, prtmod2 = 1 10 ecp mode, prtmod2 = 1 11 ecp mode and epp mode, prtmod2 = 1 bit 1: reserved. ipd (bit 0): this bit is used to select the w83877atf's legacy power - down functions. when the bit 0 is set to 1, the w83877atf will stop its clock internally and enter power - down (ipd) mode immediately. the w83877atf will not leave the power - down mode until either a system power - on reset from the mr pin occurs, or until this bit is reset to 0 to program the chip back to power - on state. 8.2.2 configuration register 1 (cr1), default = 00h when the device is in extended function mode and efir is 01h, the cr1 register can be accessed through efd r. the bit definitions are as follows: 7 6 5 4 3 2 1 0 reserved reserved reserved reserved reserved reserved reserved abchg abchg (bit 7): this bit enables the fdc ab change mode. default to be enabled at power - on reset. 0 drives a and b assigned as usual 1 drive a and drive b assignments exchanged bit 6 - bit 0: reserved.
w83877atf publication release date: april 1998 - 105 - version 0.51 8.2.3 configuration register 2 (cr2), default = 00h when the device is in extended function mode and efir is 02h, the cr2 register can be accessed through efdr. this register is reserved. 8.2.4 configuration register 3 (cr3), d efault = 30h when the device is in extended function mode and efir is 03h, the cr3 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 submidi suamidi reserved reserved reserved eppver reserved reserved bit 7 - bit 6: reserved. eppver (bit 5): this bit selects the epp version of parallel port: 0 selects the epp 1.9 version 1 selects the epp 1.7 version (default) bit 4: reserved. bit 3 - bit 2: reserved. suamidi (bit 1): this bit selects the clock divide rate of uarta. 0 disables midi support, uarta clock = 24 mhz divided by 13 (default) 1 enables midi support, uarta clock = 24 mhz divided by 12 submidi (bit 0): this bit selects the clock divide rate of uartb. 0 disables midi support, uartb clock = 24 mhz divided by 13 (default) 1 dnables midi support, uartb clock = 24 mhz divided by 12
w83877atf publication release date: april 1998 - 106 - version 0.51 8.2.5 configuration register 4 (cr4), default = 00h when the device is in extended function mode and efir is 04h, the cr4 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 urbtri uratri reserved prttri urbpwd urapwd reserved prtpwd prtpwd (bit 7): 0 supplies power to the parallel port (default) 1 puts the parallel port in power - down mode bit 6: reserved. urapwd (bit 5): 0 supplies power to coma (default) 1 puts coma in power - down mode urbpwd (bit 4): 0 supplies power to comb (default) 1 puts comb in power - down mode prttri (bit 3): this bit enables or disables the tri - state outputs of parallel port in power - down mode. 0 the output pins of the parallel port will not be tri - stated wh en parallel port is in power - down mode. (default) 1 the output pins of the parallel port will be tri - stated when parallel port is in power - down mode. bit 2: reserved. uratri (bit 1): this bit enables or disables the tri - state outputs of uarta in power - down mode. 0 the output pins of uarta will not be tri - stated when uarta is in power - down mode. 1 the output pins of uarta will be tri - stated when uarta is in power - down mode. urbtri (bit 0): this bit enables or disables the tri - state outp uts of uartb in power - down mode. 0 the output pins of uartb will not be tri - stated when uartb is in power - down mode. 1 the output pins of uartb will be tri - stated when uartb is in power - down mode.
w83877atf publication release date: april 1998 - 107 - version 0.51 8.2.6 configuration register 5 (cr5), default = 00h when the device is in extended function mode and efir is 05h, the cr5 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 ecpfthr0 ecpfthr1 ecpfthr2 reserved reserved reserved reserved ecpfthr3 bit 7 - bit 4: reserved ecpfthr3 - 0 (bit 3 - 0): these four bits define the fifo threshold for the ecp mode parallel port. the default value is 0000 after power - up. 8.2.7 configuration register 6 (cr6), default = 00h when the device is in extended function mode and efir is 06h, the cr6 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 fdctri reserved fdcpwd fipurdwm sel4fdd reserved reserved reserved bit 7 - bit 6: reserved sel4fdd (bit 5): selects four fdd mode 0 selects two fdd mode (default, see table 8 - 2) 1 selects four fdd mode dsa , dsb , moa and mob output pins are encoded a s show in table 8 - 3 to select four drives.
w83877atf publication release date: april 1998 - 108 - version 0.51 table 8 - 2 do register ( 3f2h ) mob moa dsb dsa drive bit 7 bit 6 bit 5 bit 4 bit 1 bit 0 selected 0 0 0 0 0 0 1 1 1 1 -- 0 0 0 1 0 0 1 0 1 0 fdd a 0 0 1 0 0 1 0 1 0 1 fdd b 0 1 0 0 0 1 1 1 1 1 -- 1 0 0 0 1 1 1 1 1 1 -- table 8 - 3 do register ( 3f2h ) mob moa dsb dsa drive bit 7 bit 6 bit 5 bit 4 bit 1 bit 0 selected 0 0 0 0 x x 1 1 x x -- 0 0 0 1 0 0 0 0 0 0 fdd a 0 0 1 0 0 1 0 0 0 1 fdd b 0 1 0 0 1 0 0 0 1 0 fdd c 1 0 0 0 1 1 0 0 1 1 fdd d fipurdwn (bit 4): this bit controls the internal pull - up resistors of the fdc input pins rdata , index , trak 0 , dskchg , and wp . 0 the internal pull - up resistors of fdc are turned on. (default) 1 the internal pull - up resistors of fdc are turned off. fdcpwd (bit 3): this bit controls the power to the fdc. 0 power is supplied to the fdc. (default) 1 puts the fdc in power - down mode. bit 2: reserved. fdctri (bit 1): this bit enables or disables the tri - state outputs of the fdc in power - down mode. 0 the output pins of the fdc will not be tri - stated when fdc is in power - down mode. 1 the output pins of the fdc will be tri - stated when fdc is in power - down mode. bit 0: reserved.
w83877atf publication release date: april 1998 - 109 - version 0.51 8.2.8 configuration register 7 (cr7), default = 00h when the device is in extended function mode and efir is 07h, the cr7 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 fdd a type 0 fdd a type 1 fdd b type 0 fdd b type 1 fdd c type 0 fdd c type 1 fdd d type 0 fdd d type 1 fdd d type 1, 0 (bit 7, 6): these two bits select the type of fdd d. 00 s elects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, the data transfer rate is 500 kb/s. three mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high - density fdd. 10 rwc = 1, selects 1.44 mb high - density fdd. 11 don't care rwc , selects 720 kb double - density fdd. fdd c type 1, 0 (bit 5, 4): these two bits select the type of fdd c. 00 selects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, he data transfer rate is 500 kb/s. thre e mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high - density fdd. 10 rwc = 1, selects 1.44 mb high - density fdd. 11 don't care rwc , selects 720 kb double - density fdd. fdd b type 1, 0 (bit 3, 2): these two bits select the type of fdd b. 00 selects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, the data transfer rate is 500 kb/s. three mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high - density fdd. 10 rwc = 1, selects 1.44 mb high - density fdd. 11 don't care rwc , selects 720 kb double - density fdd.
w83877atf publication release date: april 1998 - 110 - version 0.51 fdd a type 1, 0 (bit 1, 0): these two bits select the type of fdd a. 00 selects normal mode. when rwc = 0, the data transfer rate is 250 kb/s. when rwc = 1, the data transfer rate is 500 kb/s. three mode fdd select (en3mode = 1): 01 rwc = 0, selects 1.2 mb high - density fdd. 10 rwc = 1, selects 1.44 mb high - density fdd. 11 don't care rwc , selects 720 kb double - density fdd. 8.2.9 configuration register 8 (cr8), default = 00h when th e device is in extended function mode and efir is 08h, the cr8 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 floppy boot drive 0 floppy boot drive 1 media id 0 media id 1 disfddwr reserved reserved swwp bit 7 - bit 6: reserved. disfddwr (bit 5): this bit enables or disables fdd write data. 0 enables fdd write 1 disables fdd write (forces pins we , wd to stay high) once this bit is set high, the fdc operates normally, but because pin we is inactive, the fdd will not write data to diskettes. for example, if a diskette is formatted w ith disfddwr = 1, after the format command has been executed, messages will be displayed that appear to indicate that the format is complete. if the diskette is removed from the disk drive and inserted again, however, typing the dir command will reveal that the contents of the diskette have not been modified and the diskette was not actually reformatted.
w83877atf publication release date: april 1998 - 111 - version 0.51 because as the operating system (e.g., dos) reads the diskette files, it keeps the files in memory. if there is a write operation, dos will write data to the diskette and memory simultaneously. when dos wants to read the diskette, it will first search the files in memory. if dos finds the file in memory, it will not issue a read command to read the diskette. when disfddwr = 1, dos still writes data to the diskette and memory, but only the data in memory are updated. if a read operation is performed, data are read from memory first, and not from the diskette. the action of removing the diskette from the drive and inserting it again forces the dskchg pin active. d os will then read the contents of the diskette and will show that the contents have not been modified. the same holds true with write commands. this disable fdd write function allows users to protect diskettes against computer viruses by ensuring that no data are written to the diskette. swwp (bit 4): 0 normal, use wp to determine whether the fdd is write - protected or not 1 fdd is always write - protected media id 1 media id 0 (bit 3, 2): these two bits hold the media id bit 1, 0 for three mode f loppy boot drive 1 floppy boot drive 0 (bit 1, 0) these two bits hold the value of floppy boot drive 1 and drive 0 for three mode 8.2.10 configuration register 9 (cr9), default = 0dh when the device is in extended function mode and efir is 09h, the cr9 register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 chip id0 chip id1 chip id2 chip id3 reserved lockreg en3mode prtmods2 prtmods2 (bit 7): this bit and prtmods1, prtmods0 (bits 3, 2 of cr0) select the operating mode of the w83877atf. refer to the descriptions of cr0 . lockreg (bit 6): this bit enables or disables the reading and writing of all configuration registers. 0 enables the reading and writing of cr0 - cr45 1 disables the reading and writing of cr0 - cr45 (locks w83877atf extension functions) en3mode (bit 5):
w83877atf publication release date: april 1998 - 112 - version 0.51 this bit enables or disables three mode fdd selection. when this bit is high, it enables the read/write 3f3h register. 0 disables 3 mode fdd selection 1 enables 3 mode fdd selection when three mode fdd function is enabled, the value of rwc depends on bit 5 and bit 4 of tdr(3f3h). the values of rwc and their meaning are shown in table 8 - 4. table 8 - 4 bit 5 of tdr bit 4 of tdr rwc rwc = 0 rwc = 1 0 0 normal 250k bps 500k bps 0 1 0 1.2 m fdd x 1 0 1 x 1.4m fdd 1 1 x x x bit 4: reserved. chip id 3, chip id 2, chip id 1, chip id 0 (bit 3 - bit 0): these four bits are read - only bits that contain chip identification information. the value is 0dh for w83877atf during a read. 8.2.11 configuration register a (cr0a), default = 00h when the d evice is in extended function mode and efir is 0ah, the cra register can be accessed through efdr. this register is reserved. 8.2.12 configuration register b (cr0b), default = 0ch when the device is in extended function mode and efir is 0bh, the crb register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 drv2en invertz ident enifchg mfm rxw4c txw4c reserved
w83877atf publication release date: april 1998 - 113 - version 0.51 bit 7: reserved. txw4c (bit 6): this bit is active high. when active, the ir controller will wait for a 4 - character period of time from the end o f last receiving before it can start transmitting data. rxw4c (bit 5): this bit is active high. when active, the ir controller will wait for a 4 - character period of time from the end of last transmitting before it can start receiving data. enifchg (bit 4): this bit is active high. when active, it enables host interface mode change, which is determined by ident (bit 3) and mfm (bit 2). ident (bit 3): this bit indicates the type of drive being accessed and changes the level on rwc (pin 87). 0 rwc will be ac tive low for high data rates (typically used for 3.5" drives) 1 rwc will be active high for high data rates (typically used for 5.25" drives) when hardware reset or enifchg is a logic 1, ident and mfm select one of three interface modes, as shown in table 8 - 5. table 8 - 5 ident mfm interface 0 0 model 30 mode 0 1 ps/2 mode 1 0 at mode 1 1 at mode mfm (bit 2): this bit and ident select one of the three interface modes (ps/2 mode, model 30, or pc/at mode). intvertz (bit 1): this bit determines the polarity of all fdd interface signals. 0 fdd interface signals are active low 1 fdd interface signals are active high drv 2 en (bit 0): ps/2 mode only when this bit is a logic 0, indicates a second drive is installed and is reflected in status register a.
w83877atf publication release date: april 1998 - 114 - version 0.51 8.2.13 configuration register c (cr0c), default = 28h when the device is in extended function mode and efir is 0ch, the cr0c register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 tx2inv rx2inv reserved urirsel reserved hefere turb tura tura (bit 7): 0 the clock source of uart a is 1.8462 mhz (24 mhz divide 13) (default) 1 the clock source of uart a is 24 mhz, it can make the baudrate of uart a up to 1.5 mhz turb (bit 6): 0 the clock source of uart b is 1.8462 mhz (24 mhz divide 13) (default) 1 the clock source of uart b is 24 mhz, it can make the baudrate of uart a up to 1.5 mhz hefere (bit 5): this bit combines with hefras (cr16 bit 0) to define how to enable extended function registers. hefras hefere address and value 0 0 write 88 h to the location 250h 0 1 write 89h to the location 250h (default) 1 0 write 86h to the location 3f0h twice 1 1 write 87h to the location 3f0h twice the default value of hefere is 1. bit 4: reserved. urirsel (bit 3): 0 select uart b as ir function. 1 select uart b as normal function. the default value of urirsel is 1. bit 2: reserved. rx2inv (bit 1): 0 the sinb pin of uart b function or irrx pin of ir function in normal condition. 1 inverse the sinb pin of uart b function or irrx pin of ir function tx2inv (bit 0): 0 the soutb pin of uart b function or irtx pin of ir function in normal condition. 1 inverse the soutb pin of uart b function or irtx pin of ir function.
w83877atf publication release date: april 1998 - 115 - version 0.51 8.2.14 configuration register d (cr0d), default = a3h when the device is in extended function mode and efir is 0dh, the cr0d register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 sirtx1 sirtx0 sirrx1 sirrx0 hduplx irmode2 irmode1 irmode0 sirtx1 (bit 7): irtx pin selection bit 1 sirtx0 (bit 6): irtx pin selection bit 0 sirtx1 sirtx0 irtx output on pin 0 0 disabled 0 1 irtx1 (pin 43) 1 0 irtx2 (pin 95) 1 1 disabled sirrx1 (bit 5): irrx pin selection bit 1 sirrx0 (bit 4): irrx pin selection bit 0 sirrx1 sirrx0 irrx input on pin 0 0 disabled 0 1 irrx1 (pin 42) 1 0 irrx2 (pin 94) 1 1 disabled hduplx (bit 3): 0 the ir function is full duplex. 1 the ir function is half duplex. irmode2 (bit 2): ir function mode selection bit 2 irmode1 (bit 1): ir function mode selection bit 1 irmode0 (bit 0): i r function mode selection bit 0
w83877atf publication release date: april 1998 - 116 - version 0.51 ir mode ir function irtx irrx 00x disable tri - state high 010* irda active pulse 1.6 m s demodulation into sinb 011* irda active pulse 3/16 bit time demodulation into sinb 100 ask - ir inverting irtx pin routed to sinb 101 ask - ir inverting irtx & 500 khz clock routed to sinb 110 ask - ir inverting irtx demodulation into sinb 111* ask - ir inverting irtx & 500 khz clock demodulation into sinb note: the notation is normal mode in the ir function. the sir schematic diagram fo r registers crc and crd is shown below. 1 0 1 mux 0 1 0 01 00 10 11 11,00 01 10 1 mux 0 1 mux 0 1 0 mux irda mod. 3/16 irda mod. mod1.6u irda irmode0 irmode2 (crd.bit2) urirsel (crc,bit3) transmission time frame 16550a sin uart2 sout rx2inv (crc.bit1) urirsel (crc.bit3) 1 0 mux sirrx1~0 cr0d.bit5,4 ask_ir sin2 irmode1 (crd.bit3) huplx irmode0 (crd.bit0) 500khz mux mux (crd.bit1) irmode2 (crd.bit2) irmode2,1=00 (crd.bit0) disable irtx1 irtx2 sout2 ncs1 irrx1 irrx2 +5v ncs0 +5v sirtx1~0 crd.bit7,6 tx2inv crc.bit0 mux mux ir-da demodulation demodulation (default) (default) 8.2.15 configuration register e (cr0e), configuration register f (cr0f) reserved for testing. should be kept all 0's.
w83877atf publication release date: april 1998 - 117 - version 0.51 8.2.16 configuration register 10 (cr10), default = 00h when the device is in extended function mode and efir is 10h, the cr10 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gio0ad7 gio0ad0 gio0ad1 gio0ad2 gio0ad3 gio0ad4 gio0ad5 gio0ad6 gio0ad7 - gio0ad0 (bit 7 - bit 0): giop0 (pin 92) address bit 7 - bit 0. 8.2.17 configuration register 11 (cr11), default = 00h when the device is in extended function mode and efir is 11h, the cr11 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 g0cadm1 gio0ad8 gio0ad9 gio0ad10 reserved g0cadm0 reserved reserved g0cadm1 - g0cadm0 (bit 7, 6): giop0 address bit compare mode selection g0cadm1 g0cadm0 giop0 pin 0 0 compare gio0ad10 - gio0ad0 with sa10 - sa0 0 1 compare gio0ad10 - gio0ad1 with sa10 - sa1 1 0 compare gio0ad10 - gio0ad2 with sa10 - sa2 1 1 compare gio0ad10 - gio0ad3 with sa1 0 - sa3 bit 5 - bit 3: reserved gio0ad10 - gio0ad8 (bit 2 - bit 0): giop0 (pin 92) address bit 10 - bit 8.
w83877atf publication release date: april 1998 - 118 - version 0.51 8.2.18 configuration register 12 (cr12), default = 00h when the device is in extended function mode and efir is 12h, the cr12 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gio1ad7 gio1ad0 gio1ad1 gio1ad2 gio1ad3 gio1ad4 gio1ad5 gio1ad6 gio1ad7 - gio1ad0 (bit 7 - bit 0): giop1 (pin 96) address bit 7 - bit 0. 8.2.19 configuration register 13 (cr13), default = 00h when the device is in extended function mode and efir is 13h, the cr13 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 g1cadm1 gio1ad8 gio1ad9 gio1ad10 reserved g1cadm0 reserved reserved g1cadm1 - g1cadm0 (bit 7, 6): giop1 address bit compare mode selection g1cadm1 g1cadm0 giop1 pin 0 0 compare gio1ad10 - gio1ad0 with sa10 - sa0 0 1 compare gio1ad10 - gio1ad1 with sa10 - sa1 1 0 compare gio1ad10 - gio1ad2 with sa10 - sa2 1 1 compare gio1ad10 - gio1ad3 with sa10 - sa3 bit 5 - bit 3: reserved gio1ad10 - gio1ad8 (bit 2 - bit 0): giop1 (pin 96) address bit 10 - bit 8.
w83877atf publication release date: april 1998 - 119 - version 0.51 8.2.20 configuration register 14 (cr14), default = 00h when the device is in extended function mode and efir is 14h, the cr14 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gda0ipi gda0opi gcs0iow gcs0ior gio0csh giop0md0 giop0md1 giop0md2 giop0md2 - giop0md0 (bit 7 - bit 5): giop0 pin mode selection giop0md2 giop0md1 giop0md0 giop0 pin 0 0 0 0 0 1 inactive (tri - state) as a data output pin (sd0 ? giop0), when (aen = l) and (niow = l) and (sa10 - 0 = gio0ad10 - 0), the value of sd0 will be present on giop0 0 1 0 a s a data input pin (giop0 ? sd0), when (aen = l) and (nior = l) and (sa10 - 0 = gio0ad10 - 0), the value of giop0 will be present on sd0 0 1 1 as a data input/output pin (giop0 ? sd0). when (aen = l) and (niow = l) and (sa10 - 0 = gio0ad10 - 0), the value of sd0 will be present on giop0 when (aen = l) and (nior = l) and (sa10 - 0 = gio0ad10 - 0), the value of giop0 will be present on sd0 1 x x as a chip select pin, the pin will be active at (aen = l) and (sa10 - 0 = gio0ad10 - 0) or (nior = l) or (niow = l) gio0csh (bit 4): 0 the chip select pin will be active low when (aen = l) and (sa10 - 0 = gio0ad10 - 0) or (nior = l) or (niow = l) 1 the chip select pin will be active high when (aen = l) and (sa10 - 0 = gio0ad10 - 0) or (nior = l) or (niow = l) gcs0ior (bit 3): see below.
w83877atf publication release date: april 1998 - 120 - version 0.51 gcs0iow (bit 2): see below. gcs0ior gcs0iow 0 0 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10 - 0 = gio0ad10 - 0) 0 1 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10 - 0 = gio0ad10 - 0) and (niow = l) 1 0 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10 - 0 = gio0ad10 - 0) and (nior = l) 1 1 giop0 functions as a chip select pin, and will be active when (aen = l) and (sa10 - 0 = gio0ad10 - 0) and (niow = l or nior = l) gda0opi (bit 1): see below. gda0ipi (bit 0): see below. gda0opi gda0ipi 0 0 giop0 functions as a data pin, and giop0 ? sd0, sd0 ? giop0 0 1 giop0 functions as a data pin, and inverse giop0 ? sd0, sd0 ? giop0 1 0 giop0 functions as a data pin, and giop0 ? sd0, inverse sd0 ? giop0 1 1 giop0 functions as a data pin, and inverse giop0 ? sd0, inverse sd0 ? giop0 8.2.21 configuration register 15 (cr15), default = 00h when the device is in extended function mode and efir is 15h, the cr15 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gda0ipi gda0opi gcs0iow gcs0ior gio0csh giop0md0 giop0md1 giop0md2
w83877atf publication release date: april 1998 - 121 - version 0.51 giop1md2 - giop1md0 (bit 7 - bit 5): giop1 pin mode selection giop1md2 giop1md1 giop1md0 giop1 pin 0 0 0 inactive (tri - state) 0 0 1 as a data output pin (sd1 ? giop1 ), when (aen = l) and (niow = l) and (sa10 - 0 = gio1ad10 - 0), the value of sd1 will be present on giop1 0 1 0 as a data input pin (giop1 ? sd1), when (aen = l) and (nior = l) and (sa10 - 0 = gio1ad10 - 0), the value of giop1 will be present on sd1 0 1 1 as a data input/output pin (giop1 ? sd1). when (aen = l) and (niow = l) and (sa10 - 0 = gio1ad10 - 0), the value of sd1 will be present on giop1 when (aen = l) and (nior = l) and (sa10 - 0 = gio1ad10 - 0), the value of giop1 will be present on sd1 1 x x as a chip select p in, the pin will be active at (aen = l) and (sa10 - 0 = gio1ad10 - 0) or (nior = l) or (niow = l) gio1csh (bit 4): 0 the chip select pin will active low when (aen = l) and (sa10 - 0 = gioad10 - 0) or (nior = l) or (niow = l) 1 the chip select pin will active high when (aen = l) and (sa10 - 0 = gioad10 - 0) or (nior = l) or (niow = l) gcs1ior (bit 3): see below. gcs1iow (bit 2): see below. gcs1ior gcs1iow 0 0 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10 - 0 = gio1ad10 - 0) 0 1 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10 - 0 = gio1ad10 - 0) and (niow = l) 1 0 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10 - 0 = gio1ad10 - 0) and (nior = l) 1 1 giop1 functions as a chip select pin, and will be active when (aen = l) and (sa10 - 0 = gio1ad10 - 0) and (niow = l or nior = l) gda0opi (bit 1): see below.
w83877atf publication release date: april 1998 - 122 - version 0.51 gda1ipi (bit 0): see below. gda1opi gda1ipi 0 0 giop1 functions as a data pin, and giop1 ? sd1, sd1 ? giop1 0 1 giop1 f unctions as a data pin, and inverse giop1 ? sd1, sd1 ? giop1 1 0 giop1 functions as a data pin, and giop1 ? sd1, inverse sd1 ? giop1 1 1 giop1 functions as a data pin, and inverse giop1 ? sd1, inverse sd1 ? giop1 8.2.22 configuration register 16 (cr16), default = 04h when the device is in extended function mode and efir is 16h, the cr16 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 hefras reserved pnpcvs reserved g0iqsel g1iqsel reserved reserved bit 7 - bit 6: reserved. g1iqsel (bit 5): 0 pin 96 function as irq _a. 1 pin 96 function as gio1. the corresponding power - on setting pin is nrtsb (pin 45). g0iqsel (bit 4): 0 pins 92 function as irq_b. 1 pins 92 function as gio0. the corresponding power - on setting pin is nrtsb (pin 45). bit 3: reserved. pnpcvs (bit 2): 0 pnp - related registers (cr20, cr23 - 29) reset to be all 0s. 1 default settings for these registers.
w83877atf publication release date: april 1998 - 123 - version 0.51 the corresponding power - on setting pin is nrtsa (pin 36). pnp register pnpcvs = 1 pnpcvs = 0 cr20 fch 00h cr23 deh 00h cr24 feh 00h cr25 b eh 00h cr26 23h 00h cr27 05h 00h cr28 43h 00h cr29 60h 00h note: the new value of pnpcvs must be complementary to the old one to make an effective change. for example, the user must set pnpcvs to 1 first and then reset it to 0 to reset these pnp registers if the present value of pnpcvs is 0. bit 1: reserved. hefras (bit 0): combines with hefere (bit 5 of cr0c) to define how to access extended function registers (refer to bit 5 of cr0c description). the corresponding power - on setting pin is ndtra ( pin 35). 8.2.23 configuration register 17 (cr17), default = 00h when the device is in extended function mode and efir is 17h, the cr17 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 dsublgrq dsualgrq dsprlgrq dsfdlgrq prirqod reserved reserved reserved bit 7 - bit 5: reserved.
w83877atf publication release date: april 1998 - 124 - version 0.51 prirqod (bit 4): 0 printer irq ports are totem - poles in spp mode and open - drains in ecp/epp mode. 1 printer irq ports are totem - poles in all modes. dsfdlgrq (bit 3): 0 enable fdc legacy mode on irq and drq selections. do register bit 3 has effect on selecting irq. 1 disable fdc legacy mode on irq and drq selections. do register bit 3 has no effect on selecting irq. dsprlgrq (bit 2): 0 enable prt legacy mode on irq and drq selections. dcr bit 4 has effect on selecting irq. 1 disable prt legacy mode on irq and drq selections. dcr bit 4 has no effect on selecting irq. dsualgrq (bit 1): 0 enable uart a legacy mode on irq selection. mcr bit 3 has effect on selecting irq. 1 disable uart a legacy mode on irq selection. mcr bit 3 has no effect on selecting irq. dsublgrq (bit 0): 0 enable uart b legacy mode on irq selection. mcr bit 3 has effect on selecting irq. 1 disable uart b legacy mode on irq selection. mcr bit 3 has no effect on selecting irq. 8.2.24 configuration register 18 (cr18), default=00h when the device is in extended function mode and efir is 18h, the cr18 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 shara sharb sharc shard share sharf sharg sharh this register is used to select whether these int errupt request pins are in the irq sharing mode. while in the irq sharing mode, the corresponding pin is low active for 200ns for the interrupt request and keeps tri - stated otherwise.
w83877atf publication release date: april 1998 - 125 - version 0.51 sharh (bit 7): 0 pin irq_h in the legacy isa irq mode. 1 pin irq_h in the irq sharing mode. sharg (bit 6): 0 pin irq_g in the legacy isa irq mode. 1 pin irq_g in the irq sharing mode. sharf (bit 5): 0 pin irq_f in the legacy isa irq mode. 1 pin irq_f in the irq sharing mode. share (bit 4): 0 pin irq_e in the legacy i sa interrupt mode. 1 pin irq_e in the irq sharing mode. shard (bit 3): 0 pin irq_d in the legacy isa irq mode. 1 pin irq_d in the irq sharing mode. sharc (bit 2): 0 pin irq_c in the legacy isa irq mode. 1 pin irq_c in the irq sharing mode. sharb(bit 1): 0 pin irq_b in the legacy isa irq mode. 1 pin irq_b in the irq sharing mode. shara (bit 0): 0 pin irq_a in the legacy isa irq mode. 1 pin irq_a in the irq sharing mode.
w83877atf publication release date: april 1998 - 126 - version 0.51 8.2.25 configuration register 19 (cr19), default=00h when the devic e is in extended function mode and efir is 19h, the cr19 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 fastb fasta reserved reserved reserved reserved reserved reserved this register is used for the high speed modem application. while the bit is set to logic 1, it can increase the baudrate of uart to 921.2kbps (the clock source of uart is 14.769mhz) for high speed transmit/receive. bit 7 - bit 2: reserved. fasta (bit 1): 0 the clock source of uart a is the same as the frequency of tura (cr0c bit 7) and suamidi (cr3 bit 1) selected. 1 the clock source of uart a is 14.769mhz. fastb (bit 0): 0 the clock source of uart b is the same as the frequency of turb (cr0c bit 6) and submidi (cr3 bit 0) selected. 1 the clock source of uart b is 14.769mhz. 8.2.26 configuration register 20 (cr20) when the device is in extended function mode and efir is 20h, the cr20 register can be accessed through efdr. default = fch if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved fdcad2 fdcad3 fdcad4 fdcad5 fdcad6 fdcad7 this register is used to select the base address of the floppy disk controller (fdc) from 100h - 3f0h on 16 - byte boundaries. ncs = 0 and a10 = 0 are required to access the fdc registers. a[3:0] are always decoded as 0xxxb. fdcad7 - fdcad2 (bit 7 - bit 2): match a[9:4]. bit 7 = 0 and bit 6 = 0 disable this decode. bit 1 - bit 0: reserved, fixed at zero. 8.2.27 configuration register 23 (cr23)
w83877atf publication release date: april 1998 - 127 - version 0.51 when the device is in extended function mode and efir is 23h, the cr23 register can be a ccessed through efdr. default = deh if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 prtad0 prtad1 prtad2 prtad3 prtad4 prtad5 prtad6 prtad7 this register is used to select the base address of the parallel port. if epp is disable, the parallel port can be set from 100h - 3fch on 4 - byte boundaries. if epp is enable, the parallel port can be set from 100h - 3f8h on 8 - byte boundaries. ncs = 0 and a10 = 0 are required to access the parallel port when in compatible, bi - directional, or epp modes. a10 is active in ecp mode. prtad7 - prtad0 (bit 7 - bit 0): match a[9:2]. bit 7 = 0 and bit 6 = 0 disable this decode. 8.2.28 configuration register 24 (cr24) when the device is in extended function mode and efir is 24h, the cr24 register can be accessed through efdr. default = feh if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved uraad1 uraad2 uraad3 uraad4 uraad5 uraad6 uraad7 this register is used to select the base address of the uart a from 100h - 3f8h on 8 - byte boundaries. ncs = 0 and a10 = 0 are required to access the uart a registers. a[2:0] are don't - care conditions. uraad7 - uraad1 (bit 7 - bit 1): match a[9:3]. bit 7 = 0 and bit 6 = 0 disable this decode. bit 0: reserved, fixed at zero. 8.2.29 configuration register 25 (cr25) when the device is in extended function mode and efir is 25h, the cr25 register can be accessed through efdr. default = beh if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows:
w83877atf publication release date: april 1998 - 128 - version 0.51 1 2 3 4 5 6 7 0 reserved urbad1 urbad2 urbad3 urbad4 urbad5 urbad6 urbad7 this register is used to select the base address of the uart b from 100h - 3f8h on 8 - byte boundaries. ncs = 0 and a10 = 0 are required to access the uart b registers. a[2:0] are don't - care conditions. urbad7 - urbad1 (bit 7 - bit 1): match a[9:3]. bit 7 = 0 and bit 6 = 0 disable this decode. bit 0: reserved, fixed at zero. 8.2.30 configuration register 26 (cr26) when the device is in extended function mode and efir is 26h, the cr26 register can be accessed through efdr. default = 23h if cr16 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 prtdqs0 prtdqs1 prtdqs2 prtdqs3 fdcdqs0 fdcdqs1 fdcdqs2 fdcdqs3 fdcdqs3 - fdcdqs0 (bit 7 - bit 4): allocate dma resource for fdc. prtdqs3 - prtdqs0 (bit 3 - bit 0): allocate dma resource for prt. bit 7 - bit4, bit 3 - bit 0 dma selected 0000 none 0001 dma_a 0010 dma_b 0011 dma_c
w83877atf publication release date: april 1998 - 129 - version 0.51 8.2.31 configuration register 27 (cr27) when the device is in extended function mode and efir is 27, the cr27 register can be accessed through efdr. default = 05h if cr6 bit 2 = 1; default = 00h if cr 16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 prtiqs0 prtiqs1 prtiqs2 prtiqs3 reserved ecpirqx0 ecpirqx1 ecpirqx2 ecpirqx2 - ecpirqx0 (bit7 - bit 5): these bits are configurable equivalents to bit[5:3] of cnfgb register in ecp mode , except that cnfgb[5:3] are read - only bits. they indicate the irq resource assigned for the ecp printer port. it is the software designer's responsibility to ensure that cr27[7:5] and cr27[3:0] are consistent. for example, cr27[7:5] should be filled with 001 (select irq 7) if cr27[3:0] are to be programmed as 0101 (select irq_e) while irq_e is connected to irq 7. cr27[7:5] irq resource 000 reflect other irq resources selected by cr27[3:0] (default) 001 irq 7 010 irq 9 011 irq 10 100 irq 11 101 irq 14 110 irq 15 111 irq 5 bit 4: reserved. prtiqs3 - prtiqs0 (bit 3 - bit 0): select irq resource for the parallel port. any unselected irq pin is in tri - state. cr27[3:0] select irq pin 0000 none 0001 irq_a 0010 irq_b 0011 irq_c 0100 irq_d 0101 irq_e 0110 irq_f 0111 irq_g 1000 irq_h
w83877atf publication release date: april 1998 - 130 - version 0.51 while in the seri al irq mode (irqmods=1, cr31 bit2), the above selection is invalid and all the irq signal pins, from irq_a to irq_h, are in tri - state. the parallel port irq is dedicated to the serirq pin. for the host controller to correctly sample the parallel port irq, the parallel port irq should be programmed to appear in one of irq/data frame sampling periods. in serial irq mode, the definition of prtiqs3 - prtiqs0 (bit 3 - bit 0) is as follows: prtiqs3 - prtiqs0 (bit 3 - bit 0): select the irq/data frame sampling period on the serirq pin. cr27[3:0] irq/data frame period 0000 none 0001 irq1 0010 reserved for smi 0011 irq3 0100 irq4 0101 irq5 0110 irq6 0111 irq7 1000 irq8 1001 irq9 1010 irq10 1011 irq11 1100 irq12 1101 irq13 1110 irq14 1111 irq15 8.2.32 configuration register 28 (cr28) when the device is in extended function mode and efir is 28, the cr28 register can be accessed through efdr. default = 43h if cr6 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions ar e as follows: 1 2 3 4 5 6 7 0 urbiqs0 urbiqs1 urbiqs2 urbiqs3 uraiqs0 uraiqs1 uraiqs2 uraiqs3 uraiqs3 - uraiqs0 (bit 7 - bit 4): allocate interrupt resource for uart a. urbiqs3 - urbiqs0 (bit 3 - bit 0): allocate interrupt resource for uart b.
w83877atf publication release date: april 1998 - 131 - version 0.51 8.2.33 configuration register 29 (cr29) when the device is in extended function mode and efir is 29, the cr29 register can be accessed through efdr. default = 62h if cr6 bit 2 = 1; default = 00h if cr16 bit 2 = 0. the bit definitions are as follows: 1 2 3 4 5 6 7 0 iqniqs0 iqniqs1 iqniqs2 iqniqs3 fdciqs0 fdciqs1 fdciqs2 fdciqs3 fdciqs3 - fdciqs0 (bit 7 - bit 4) : allocate interrupt resource for fdc. iqniqs3 - iqniqs0 (bit 3 - bit 0): allocate interrupt resource for irqin. 8.2.34 configuration registers (cr2a) when the device is in extended function mode and efir is 2ah, the cr2a register can be accessed through efdr. this register default value is 00 16 . the bit definitions are as follows: 1 2 3 4 5 6 7 0 irrxdrqsl0 irrxdrqsl1 irrxdrqsl2 irrxdrqsl3 irtxdrqsl0 irtxdrqsl1 irtxdrqsl2 irtxdrqsl3 irtxdrqsl (bit 7 - bit 4): transmitter dma channel a through d selection when high speed infrared (fir/mir) is used and enable dma channel. note th at these bits is used in two dma channels. irrxdrqsl(bit 3 - bit 0): receiver or transmitter dma channel a through selection when high speed infrared (fir/mir) is used and enable dma channel. note that these bits act as rx dma channel selection if two dma channel is used, or act as rx/tx dma channel selection if single dma channel is used.
w83877atf publication release date: april 1998 - 132 - version 0.51 8.2.35 configuration registers (cr2b) when the device is in extended function mode and efir is 2bh, the cr2b register can be accessed through efdr. this register defau lt value is 00 16 . the bit definitions are as follows: 1 2 3 4 5 6 7 0 pin93fun0 pin93fun1 pin3fun0 pin3fun1 pin2fun0 pin2fun1 pin1fun0 pin1fun1 bit 7~6: pin1fun1~0 - pin 1 function select. irqmods * pin1fun1 pin1fun0 pin 1 0 0 0 irq_g 0 0 1 reserved 0 1 0 drq_d 0 1 1 irsl2 1 x x pciclk * note that: irqmods is defined in cr31.bit2, that is, the irq mode selection bit. bit 5 - 4: pin2fun1~0 - pin 2 function select. pin2fun1 pin2fun0 pin 2 0 0 ncs 0 1 a11 1 0 reserved 1 1 reserved bit 3 - 2: pin3fun1~0 - pin 3 function select. pin3fun1 pin3fun0 pin 3 0 0 p dcin 0 1 ndack_d 1 0 irsl1 1 1 irrxh/irsl0
w83877atf publication release date: april 1998 - 133 - version 0.51 bit 1 - 0: pin93fun1~0 - pin 93 function select. enpnf(cr16.bit7) pin93fun1 pin93fun0 pin 93 0 0 0 irqin 0 0 1 drq_d 0 1 0 irsl2 0 1 1 irrxh/irsl0 1 x x pnf 8.2.36 configuration registers (cr2c) when the device is in extended function mode and efir is 2ch, the cr2c register can be accessed through efdr. this register default value is 10 16 . the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved clkinsel enbnksel apedcrc pin91fun0 pin91fun1 pin91fun2 bit 7 - 2 : pin91fun2~0 - pin 91 function sele ct. irqmods * pin91fun2 pin91fun1 pin91fun0 pin 91 0 0 0 0 irq_h 0 0 0 1 reserved 0 0 1 0 irsl2 0 0 1 1 reserved 0 1 0 0 dack_d 1 x x x serirq * note that the bit irqmods is defined in cr31.bit2, that is , a irq mode selection. note: the irsl0/irrxh selection is determined by bit 5(irsl0 mode selection) of register7 of bank7. when setting bit 5 to logical 1, irsl0 is selected; when setting bit 5 to logical 0, irrxh is selected. bit 4 :apedcrc - append crc to receiver when a frame is end. = 0 no append hardware crc value as data in fir/mir mode = 1 append hardware crc value as data in fir/mir mode
w83877atf publication release date: april 1998 - 134 - version 0.51 bit 3 :enbnksel - bank select enable = 0 disable uart b bank selection = 1 enable uart b bank selection bit 2 :clkinsel - clock input selection = 0 the clock on pin clkin is 24 mhz = 1 the clock on pin clkin is 48mhz bit 1, bit 0: reserved 8.2.37 configuration registers (cr2d) when the device is in extended function mode and e fir is 2d 16 , the cr2d register can be accessed through efdr. this register default value is 00 16 . the bit definitions are as follows: 1 2 3 4 5 6 7 0 drta0 drta1 dis_precomp0 drtb0 drtb1 dis_precomp1 reserved reserved this register controls the data rate selection for fdc. it also controls if precompensation is enabled. drta1, drta0 (bit 1 - bit 0): these two bits combining with data rate selection bits in date rate register select the operational data rate for fdd a as follows: drive rate table data rate operational data rate drta1 drta0 drate1 drate 0 mfm fm 0 0 1 1 1m --- 0 0 0 0 500k 250k 0 0 0 1 300k 150k 0 0 1 0 250k 125k 0 1 1 1 1m --- 0 1 0 0 500k 250k 0 1 0 1 500k 250k 0 1 1 0 250k 125k 1 0 1 1 1m --- 1 0 0 0 500k 250k 1 0 0 1 2m --- 1 0 1 0 250k 125k
w83877atf publication release date: april 1998 - 135 - version 0.51 dis_precomp0 (bit 2): this bit controls if precompensation is enabled for fdd a. 0 enable precompensation for fdd a 1 disable precompensation for fdd a drtb1, drtb0 (bit 4 - bit 3): these two bits combining with data rate selection bits in date rate register select the operational d ata rate for fdd b as shown in last table. dis_precomp1 (bit 5): this bit controls if precompensation is enabled for fdd b. 0 enable precompensation for fdd b 1 disable precompensation for fdd b bit 7 - bit 6: rreserved. 8.2.38 configuration register 2e (cr2e), default = 2eh when the device is in extended function mode and efir is 2eh, the cr2e register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 nen16sa enpnf invrd en24x2m dis_bst reserved reserved reserved enpnf (bit 0): 0 disable printer not floppy funct ion. (default) 1 enable printer not floopy function. nen16sa (bit 1): 0 enable 16 - bit address decoder in the isa bus. if the function of full isa address decoder is used, the device of com b will be changed to sir/fir function automatically. 1 disable 16 - bit address decoder in the isa bus. invrd (bit 2): 0 disable inverting rdata from floppy disk input signal. (default) 1 enable inverting rdata from floppy disk input signal.
w83877atf publication release date: april 1998 - 136 - version 0.51 en24mx2: 0 using internal circuit type one to g enerate 48m hz when clkin is 24m hz. (default) 1 using internal circuit type two to generate 48m hz when clkin is 24m hz. dis_bst(bit3): disable fdc dma burst mode. 0 enable fdc burst mode. (default) 1 disable fdc burst mode. 8.2.39 configuration register 31 (cr31), default=00h when the device is in extended function mode and efir is 31h, the cr31 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved irqmods reserved sciirq0 sciirq1 sciirq2 sciirq3 sciirq3 ~ sciirq0 (bit 7 - bit 4): the four bi ts select one irq pin for the sci signal except for dedicated sci signal output pin. any unselected pin is in tri - state. cr31[7:4] mapped irq pin 0000 none (default) 0001 irq_a 0010 irq_b 0011 irq_c 0100 irq_d 0101 irq_e 0110 irq_f 0111 irq_g 1000 irq_h while in the serial irq mode (irqmods=1, cr31 bit 2), the above selection is invalid and all the irq signal pins, from irq_a to irq_h, are all in tri - state. the sci interrupt output is dedicated to the serirq pin. for the host controller to co rrectly sample the sci interrupt, the sci interrupt should be programmed to appear in one of irq/data frame sampling periods. in serial irq mode, the definition of sciiqs3 - sciiqs0 (bit 7 - bit 4) is as follows: sciiqs3 - sciiqs0 (bit 7 - bit 4): select the irq/data sampling period on the serirq pin.
w83877atf publication release date: april 1998 - 137 - version 0.51 cr27[7:4] irq/data frame period 0000 none 0001 irq1 0010 reserved for smi 0011 irq3 0100 irq4 0101 irq5 0110 irq6 0111 irq7 1000 irq8 1001 irq9 1010 irq10 1011 irq11 1100 ir q12 1101 irq13 1110 irq14 1111 irq15 bit 3: reserved. irqmods (bit 2): irq mode seleection. the w83877atf supports: (1) legacy isa irq mode or isa irq sharing mode. (2) serial irq mode used in the pci bus. in the legacy isa irq sharing mode, the selected irq pin for the device's irq is defined in the configuration registers cr27 - cr29. in the isa irq sharing mode, configuration register cr18 indicates which irq pin is in the irq sharing mode. 0: legacy isa irq mode or isa irq sharing mode.(defaul t) 1: serial irq mode used in pci bus. bit 1 - bit 0: reserved. 8.2.40 configuration register 32 (cr32), default=00h when the device is in extended function mode and efir is 32h, the cr32 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbpme urapme fdcpme prtpme reserved reserved reserved chippme
w83877atf publication release date: april 1998 - 138 - version 0.51 chippme (bit 7): w83877atf chip power management enable. 0 disable the acpi/legacy and the auto power management functions. 1 enable the acpi/legacy and the auto power management fun ctions. bit 6 - bit 4: reserved. prtpme (bit 3): printer port power management enable. 0 disable the auto power management function. 1 enable the auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1. fdcpme (bit 2): fdc power management enable. 0 disable the auto power management function. 1 enable the auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1. urapme (bit 1): uart a pow er management enable. 0 disable and the auto power management function. 1 enable auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1. . urbpme (bit 0): uart b power management enable. 0 disable the auto power management functions. 1 enable the auto power management function, if this bit and chippme(cr32 bit 7) are both set to 1.
w83877atf publication release date: april 1998 - 139 - version 0.51 8.2.41 configuration register 33 (cr33), default=00h when the device is in extended f unction mode and efir is 33h, the cr33 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved reserved pm1ad2 pm1ad3 pm1ad4 pm1ad5 pm1ad6 pm1ad7 pm1ad7 - pm1ad2 (bit 7 - bit 2): base address of the power management register block pm1. this address is the base address of pm1a_evt_blk in the acpi specification. the based address should range from 01,0000,0000 b to 11,1111,0000 b ,i.e., 100h ~ 3f0h, where bit 1 and bit 0 of the base address should be set to 0 and the based address is in the 16 - byte alignment. note that the based address of pm1a_cnt_blk is equal to pm1a_evt_blk + 4, and pm_tmr_blk is equal to pm1a_evt_blk + 8. bit 1 - bit 0: reserved, fixed at 0. 8.2.42 configuration register 34 (cr34), default=00h when the device is in extended function mode and efir is 34h, the cr34 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 reserved gpead1 gpead2 gpead3 gpead4 gpead5 gpead6 gpead7 gpead7 - gpead1 (bit7 - bit 1): base address of the power management register block gpe. this address is the base addres s of gpe0_blk in the acpi specification. the base address should range from 01,0000,0000 b to 11,1111,1000 b ,i.e., 100h ~ 3f8h, where bit 0 of the base address should be set to 0 and the base address is in the 8 - byte alignment. note that the base address of gpe1_blk is gpe0_blk + 4. bit 0: reserved, fixed at 0.
w83877atf publication release date: april 1998 - 140 - version 0.51 8.2.43 configuration register 35 (cr35), default=00h when the device is in extended function mode and efir is 35h, the cr35 register can be accessed through efdr. the bit definitions are as follow s: 1 2 3 4 5 6 7 0 uracnt0 uracnt1 uracnt2 uracnt3 uracnt4 uracnt5 uracnt6 uracnt7 uracnt7 - uracnt0 (bit 7 - bit 0): uart a idle timer count. this register is used to specify the initial value of uart a idle timer. once uart a enters the working state (that is, after any access to this device, any irq, and any external input), the power down machine of uart a reloads this count value and the idle timer counts down. when the timer counts down to zero, uart a enters the power down state ,i.e., sleeping state. if this register is set to 00h, the powe r down function will be invalid. the time resolution of this value is minute or second, which is defined by the tmin_sel bit of the cr3a. note that (1). this register is valid only when the power management function of uart a is enabled, that is, chippme=1 (cr32 bit 7) and urapme=1 (cr32 bit 1), (2). if the register is set to 00h, uart a will remain in the current state (working or sleeping). 8.2.44 configuration register 36 (cr36), default=00h when the device is in extended function mode and efir is 36h , the cr36 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbcnt0 urbcnt1 urbcnt2 urbcnt3 urbcnt4 urbcnt5 urbcnt6 urbcnt7 urbcnt7 - urbcnt0 (bit 7 - bit 0): uart b idle timer count. this register is used to specify the initial value of uart b idle timer. once uart b enters the working state (that is, after any access to this device, any irq, and any external input), the power down machine of uart b reloads this count value and the idle timer counts down. when the timer counts down to zero, uart b enters th e power down state ,i.e., sleeping state. if this register is set to 00h, the power down function will be invalid. the time resolution of this value is minute or second, which is defined by the tmin_sel bit of cr3a. note that (1). this register is valid only when the power management function of uart b is enabled, that is, chippme=1 (cr32 bit 7) and urbpme=1 (cr32 bit 0), (2). if the register is set to 00h, uart b will remain in the current state (working or sleeping).
w83877atf publication release date: april 1998 - 141 - version 0.51 8.2.45 configuration register 37 (cr 37), default=00h when the device is in extended function mode and efir is 37h, the cr37 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 fdccnt0 fdccnt1 fdccnt2 fdccnt3 fdccnt4 fdccnt5 fdccnt6 fdccnt7 fdccnt7 - fdccnt0 (bit 7 - bit 0): fdc idle timer count. this register is used to specify the initial value of fdc idle timer. once fdc enters the working state (that is, after any access to this device, any irq, and any external input), the power down machine of fdc reloads this count value and the idle timer counts down. when the timer counts down to zero, fdc enters the power down state ,i.e., sleeping state. if this register is set to 00h, the power down function will be invalid. the time resolution of this value is minute or second, which is defined by the tmin_sel bit of the cr3a. note that (1). this register is valid only when the power management function of fdc is enabled, that is, chippme=1 (cr32 bit 7) and fdcpme=1 (cr32 bit 2), (2). if the register is set to 00h, fdc will remain in the current state ( working or sleeping). 8.2.46 configuration register 38 (cr38), default=00h when the device is in extended function mode and efir is 38h, the cr38 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 prtcnt0 prtcnt1 prtcnt2 prtcnt3 prtcnt4 prtcnt5 prtcnt6 prtcnt7 prtcnt7 - prtcnt0 (bit 7 - bit 0): printer port idle timer count. this register is used to specify the initial value of the printer port idle timer. once the printer port enters the working state (that is, after any access to this device, any irq, and a ny external input), the power down machine of the printer port reloads this count value and this idle timer counts down. when the timer counts down to zero, printer port enters the power down state ,i.e., sleeping state. if this register is set to 00h, the power down function will be invalid. the time resolution of this value is minute or second, which is defined by the tmin_sel bit of cr3a. note that (1). this register is valid only when the power management function of the printer port is enabled, that is , chippme=1 (cr32 bit 7) and prtpme=1 (cr32 bit 3), (2). if the register is set to 00h, the printer port will remain in the current state (working or sleeping).
w83877atf publication release date: april 1998 - 1 42 - version 0.51 8.2.47 configuration register (cr39), default=00h when the device is in extended function mode and efir is 39h, the cr39 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 gsbcnt0 gsbcnt1 gsbcnt2 gsbcnt3 gsbcnt4 gsbcnt5 gsbcnt6 gsbcnt7 gsbcnt7 - gsbcnt0 (bit 7 - bit 0): global stand - by idle timer count. once all devices of the chip (including uart a, uart b, fdc and the printer port) are all in the power down state, the power down machine of w83877atf chip loads this register value and counts down. when the timer counts to zero, the whole chip enters the power down state, i.e., sleeping state. if this register is set to 0, the power down function will be invalid. the time resolution of this register value is minute or second, which is defined by the tmin_sel bit of cr3a. note that (1). this register is valid when the chippme = 1 (cr32 bit 7), and (2) if the register is set to 00h, w83877atf chip will remain in the current state (working or sleeping). 8.2.48 configuration register 3a (cr3a), default=00h when the device is in extended function mode and efir is 3ah, the cr3a register can be accessed through efdr. the bit definitions are as follows: 7 6 5 4 3 2 1 0 upullen reserved smi_en reserved reserved tmin_sel reserved reserved bit 7 - bit 6 : reserved, fixed at 0. tmin_sel (bit 5): time resolution of the auto power machines of all devices. cr35 to cr39 store the initial counts of the devices. 0 one second 1 one miniute
w83877atf publication release date: april 1998 - 143 - version 0.51 bi t 4 - bit 2: reserved, fixed at 0. smi_en (bit 2): smi output pin enable. while an smi event is raised on the output of the smi logic, this bit determines whether the smi interrupt is generated on the smi output smi pin and on the serial irq irqser pin while in serial irq mode. 0 disable 1 enable bit 1:reserved. upullen (bit 0): enable the pull up of irqser pin in serial irq mode. 0 disable the pull up of irqser pin. 1 enable the pull up of irqser pin. 8.2.49 configuration register 3b (cr3b), default=00h reserved for testing. should be kept all 0's. 8.2.50 configuration register 40 (cr40), default=00h when the device is in extended function mode and efir is 40h, the cr40 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbidlsts uraidlsts fdcidlsts prtidlsts reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : devices' idle status. these bits indicate that the individual device's idle timer expires due to no i/o access, irq, and external input to the device respe ctively. these 4 bits are controlled by the printer port, fdc, uart a, and uart b power down machines individually. the bits are set/cleared by w83877atf automatically. writing a 1 can also clear this bit, and writing a 0 has no effect. prtidlsts (bit 3): printer port idle status. 0 printer port is now in the working state. 1 printer port is now in the sleeping state due to no printer port access, irq, dma acknowledge, and no transition on busy, ack , pe, slct, and err pins.
w83877atf publication release date: april 1998 - 144 - version 0.51 fdcidlsts (bit 2): fdc idle status. 0 fdc is now in the working state. 1 fdc is now in the sleeping state due to no fdc access, no irq, no dma acknowledge, and no enabling of the motor enable bits in the dor register. uraidlsts (bit 1): uart a idle status. 0 uart a is now in the working state. 1 uart a is now in the sleeping state due to no uart a access, no irq, the receiver is now waiting for a start bit, the transmitter shift re gister is now empty, and no transition on modem control input lines. urbidlsts (bit 0): uart b idle status. 0 uart b is now in the working state. 1 uart b is now in the sleeping state due to no uart b access, no irq, the receiver is now waiting for a start bit, the transmitter shift register is now empty, and no transition on modem control input lines. 8.2.51 configuration register 41 (cr41), default=00h when the device is in extended function mode and efir is 41h, the cr41 re gister can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbtrapsts uratrapsts fdctrapsts prttrapsts reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : devices' trap status. these bits indicate that the individual device wakes up due to any i/o access, irq, and external input to the device respectively. the device's idle timer reloads the initial count value from cr35 - cr39, depending on which device wakes up. these 4 bits are controlled by the printer port, fdc, uart a, and uart b power down machin es individually. the bits are set/cleared by w83877atf automatically. writing a 1 can also clear this bit, and writing a 0 has no effect.
w83877atf publication release date: april 1998 - 145 - version 0.51 prttrapsts (bit 3): printer port trap status. 0 the printer port is now in the sleeping state. 1 the printer port is now in the working state due to any printer port access, any irq, any dma acknowledge, and any transition on busy, ack , pe, slct, and err pins. fdctrapsts (bit 2): fdc trap status. 0 fdc i s now in the sleeping state. 1 fdc is now in the working state due to any fdc access, any irq, any dma acknowledge, and any enabling of the motor enable bits in the dor register. uratrapsts (bit 1): uart a trap status. 0 uart a is now in the sleeping state. 1 uart a is now in the working state due to any uart a access, any irq, the receiver begins receiving a start bit, the transmitter shift register begins transmitting a start bit, and any transition on modem contro l input lines. urbtrapsts (bit 0): uart b trap status. 0 uart b is now in the sleeping state. 1 uart b is now in the working state due to any uart b access, any irq, the receiver begins receiving a start bit, the transmitter shift register begins transmitting a start bit, and any transition on modem control input lines. 8.2.52 configuration register 42 (cr42), default=n/a when the device is in extended function mode and efir is 42h, the cr42 register can be accessed through e fdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbirqsts urairqsts fdcirqsts prtirqsts reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : device's irq status .
w83877atf publication release date: april 1998 - 146 - version 0.51 these bits indicate the irq pin status of the individual device. the device's irq status bit is set or cleared at their source device; writing a 1 or 0 has no effect. prtirqsts (bit 3) : printer port irq status. while the irq type of printer port is edge trigger - type, this bit will set and reset immediately. as the software reads this bit, it indicates low l evel. the software must read the irq status bit in the printer port device register to correctly identify whether the printer port irq occurs. fdcirqsts (bit 2) : fdc irq status. urairqsts (bit 1) : uart a irq status. urbirqsts (bit 0) : uart b irq status. 8.2.53 configuration register 43 (cr43), default=00h when the device is in extended function mode and efir is 43h, the cr43 register can be accessed through efdr. this register is reserved. 8.2.54 configuration register 44 (cr44), default=00h when t he device is in extended function mode and efir is 44h, the cr44 register can be accessed through efdr. this register is reserved. 8.2.55 configuration register 45 (cr45), default=00h when the device is in extended function mode and efir is 45h, the cr45 register can be accessed through efdr. the bit definitions are as follows: 1 2 3 4 5 6 7 0 urbirqen urairqen fdcirqen prtirqen reserved reserved reserved reserved bit 7 - bit 4 : reserved, fixed at 0. bit 3 - bit 0 : enable bits of the smi generation due to the device's irq.
w83877atf publication release date: april 1998 - 147 - version 0.51 these bits enable the generatio n of an smi interrupt due to any irq of the devices respectively. these 4 bits control the printer port, fdc, uart a, and uart b smi logics individually. the smi logic output for the irqs is as follows: smi logic output = (urbirqen and urbirqsts) or (urairqen and urairqsts) or (fdcirqen and fdcirqsts) or (prtirqen and prtirqsts) if any device's irq is raised, the coresponding irq status bit in cr42 is set. if the device's enable bit is set and smi_en(in cr3a) and chippme(in cr32) is both set, then smi inte rrupt occurs on the smi output pin. prtirqen (bit 3): 0 disable the generation of an smi interrput due to the printer port's irq. 1 enable the generation of an smi interrput due to the printer port's irq. fdcirqen (bit 2): 0 disable the generation of an smi interrupt due to the fdc's irq. 1 enable the generation of an smi interrupt due to the fdc's irq. urairqen (bit 1): 0 disable the generation of an smi interrupt due to the uart a's irq. 1 enable the generation of an smi interrupt due to the uart a's irq. urbirqen (bit 0): 0 disable the generation of an smi interrupt due to the uart b's irq. 1 enable the generation of an smi interrupt due to the uart b's irq.
w83877atf publication release date: april 1998 - 148 - version 0.51 8.2.56 bit map configuration registers table 8 - 1: bit map of configuration registers register power - on reset value d7 d6 d5 d4 d3 d2 d1 d0 cr0 0000 0000 0 0 0 0 prtmods1 prtmods0 0 ipd cr1 0000 0000 abchg 0 0 0 0 0 0 0 cr2 0000 0000 0 0 0 0 0 0 0 0 cr3 0011 0000 0 0 eppver 0 0 0 suamidi submidi cr4 0000 0000 prtpwd 0 urapwd urbpwd prttri 0 uratri urbtri cr5 0000 0000 0 0 0 0 ecpfthr3 ecpfthr2 ecpfthr1 ecpfthr0 cr6 0000 0000 0 0 sel4fdd fipurdwn fdcpwd 0 fdctri 0 cr7 0000 0000 fdd d t1 fdd d t0 fdd c t1 fdd c t0 fdd b t1 fdd b t0 fdd a t1 fdd a t0 cr8 0000 0000 0 0 disfddwr swwp media 1 media 0 boot 1 boot 0 cr9 0000 1101 prtmods2 lockreg en3mode 0 chip id 3 chip id 2 chip id 1 chip id 0 cra 0000 0000 0 0 0 0 0 0 0 0 crb 0000 1100 0 tx4wc rx4wc enifchg ident mfm invertz drv2en crc 0010 1000 tura turb hefere 0 urirsel 0 rx2inv tx2inv crd 1010 0011 sirtx1 sirtx0 sirrx1 sirrx0 hduplx irmode2 irmode1 irmode0 cr10 0000 0000 gio0ad7 gio0ad6 gio0ad5 gio0ad4 gio0ad3 gio0ad2 gio0ad1 gio0ad0 cr11 0000 0000 g0cadm1 g0cadm0 0 0 0 gio0ad10 gio0ad9 gio0ad8 cr12 0000 0000 gio1ad7 gio1ad6 gio1ad5 gio1ad4 gio1ad3 gio1ad2 gio1ad1 gio1ad0 cr13 0000 0000 g1cadm1 g1cadm0 0 0 0 gio1ad10 gio1ad9 gio1ad8 cr14 0000 0000 giop0md2 giop0md1 giop0md0 gio0csh gcs0ior gcs0iow gda0opi gda0ipi cr15 0000 0000 giop1md2 giop1md1 giop1md0 gio1csh gcs1ior gcs1iow gda1opi gda1ipi cr16 00ss 0s0s 1 0 0 g1iqsel g0iqsel 0 pnpcvs 0 hefras cr17 0000 0000 0 0 0 prirqod dsfdlgrq dsprlgrq dsualgrq dsublgrq cr18 0000 0000 sharh sharg sharf share shard sharc sharb shara cr19 0000 0000 0 0 0 0 0 0 fasta fastb
w83877atf publication release date: april 1998 - 149 - version 0.51 continued table 8 - 1: bit map of configuration registers cr20 1111 1100 2 fdcad7 fdcad6 fdcad5 fdcad4 fdcad3 fdcad2 0 0 cr23 1101 1110 2 prtad7 prtad6 prtad5 prtad4 prtad3 prtad2 prtad1 prtad0 cr24 1111 1110 2 uraad7 uraad6 uraad5 uraad4 uraad3 uraad2 uraad1 0 cr25 1011 1110 2 urbad7 urbad6 urbad5 urbad4 urbad3 urbad2 urbad1 0 cr26 0010 0011 2 fdcdqs3 fdcdqs2 fdcdqs1 fdcdqs0 prtdqs3 prtdqs2 prtdqs1 prtdqs0 cr27 0000 0101 2 ecpirqx2 ecpirqx1 ecpirqx0 0 prtiqs3 prtiqs2 prtiqs1 prtiqs0 cr28 0100 0011 2 uraiqs3 uraiqs2 uraiqs1 uraiqs0 urbiqs3 urbiqs2 urbiqs1 urbiqs0 cr29 0110 0000 2 fdciqs3 fdciqs2 fdciqs1 fdciqs0 iqniqs3 iqniqs2 iqniqs1 iq niqs0 cr2a 0000 0000 irtxdsl3 irtxdsl2 irtxdsl1 irtxdsl0 irrxdsl3 irrxdsl2 irrxdsl1 irrxdsl0 cr2b 0000 0000 pin1fun1 pin1fun0 pin2fun1 pin2fun0 pin3fun1 pin3fun0 pin93fun1 pin93fun0 cr2c 0000 0000 pin91fun2 pin91fun1 pin91fun0 apedcrc enbnksl clkinsel 0 0 cr2d 0000 0000 0 0 dis - precom1 drtb 1 drtb 0 dis - precom0 drta 1 drta 0 cr31 0000 0s00 sciirq3 sciirq2 sciirq1 sciirq0 0 irqmods 0 0 cr32 0000 0000 chippme 0 0 0 prtpme fdcpme urapme urbpme cr33 0000 0000 pm1ad7 pm1ad6 pm1ad5 pm1ad4 pm1ad3 pm1ad2 0 0 cr34 0000 0000 gpead7 gpead6 gpead5 gpead4 gpead3 gpead2 gpead1 0 cr35 0000 0000 uracnt7 uracnt6 uracnt5 uracnt4 uracnt3 uracnt2 uracnt1 uracnt0 cr36 0000 0000 urbcnt7 urbcnt6 urbcnt5 urbcnt4 urbcnt3 urbcnt2 urbcnt1 urbcnt0 cr37 0000 0000 fdccnt7 fdccnt6 fdccnt5 fdccnt4 fdccnt3 fdccnt2 fdccnt1 fdccnt0 cr38 0000 0000 prtcnt7 prtcnt6 prtcnt5 prtcnt4 prtcnt3 prtcnt2 prtcnt1 prtcnt0 cr39 0000 0000 gsbcnt7 gsbcnt6 gsbcnt5 gsbcnt4 gsbcnt3 gsbcnt2 gsbcnt1 gsbcnt0 cr3a 0000 0000 0 0 tmin_sel 0 0 smi_en 0 upullen cr40 0000 0000 0 0 0 0 prtidlsts fdcidlsts uraidlsts urbidlsts cr41 0000 0000 0 0 0 0 prttrapsts fdctrapsts uratrapsts urbtrapsts cr42 0000 0000 0 0 0 0 prtirqsts fdcirqsts urairqsts urbirqsts cr43 0000 0000 0 0 0 0 0 0 0 0 cr44 0000 0000 0 0 0 0 0 0 0 0 cr45 0000 0000 0 0 0 0 prtirqen fdcirqen urairqen urbirqen notes: 1. 's' means its value depends on corresponding power - on setting pin. 2. these default values are valid when cr16 bit 2 is 1 during power - on reset; they will be all 0's if cr16 bit 2 is 0.
w83877atf publication release date: april 1998 - 150 - version 0.51 8.3 acpi registers features w83877atf supports both the acpi and legacy power managements. the switch logic of the power managment block generates an smi interrupt in the legacy mode and an sci interrupt in the acpi mode. for the legacy mode, the smi_en bit is used. if it is set, it routes the power management events from the smi interrupt logic to the smi output pin. for the acpi mode, the sci_en bit is used. if it is set, it routes the power management events to the sci interrup t logic. the smi_en bit is located in the cr3a register and the sci_en bit is located in the pm1 register block. see the following figure for an illustration. pm timer device idle timers device trap timer smi logic smi_en smi output logic sci output logic sleep/wake state machine wak_sts clock control sci smi sci logic global stby sci events 0 1 sci_en smi events irqs irqs irqs the smi interrupt is routed to pin smi , which is dedicated for the smi interrupt output. another way to output the smi interrupt is to route to pin irqser, which is the signal pin in the serial irq mode. the sci interrupt is routed to pin sci , which is dedicated for the sci function. the other way to o utput the sci interrupt is to route to one interrupt request signal pin irqa~h, which is selected through cr31 bit[7:4]. another way is output the sci interrupt is to route to pin irqser.
w83877atf publication release date: april 1998 - 151 - version 0.51 8.3.1 smi to sci/sci to smi and bus master for the process of generating an interrupt from smi to sci or from sci to smi, see the following figure for an illustration. bios_rls gbl_en from sci to smi gbl_rls bios_en bus master sci bm_cntpl bm_rld clear set bm_sts to sci logic to smi logic to sci logic from smi to sci clear set clear set gbl_sts bios_sts : status bit : enable bit for the bios software to raise an event to the acpi software, bios_rls, gbl_en, and gbl_sts bits are involved. gbl_en is the enab le bit and the gbl_sts is the status bit. both are controlled by the acpi software. if bios_rls is set by the bios software and gbl_en is set by the acpi software, an sci interrupt is raised. writing a 1 to bios_rls sets it to logic 1 and also sets gbl_sts to logic 1; writing a 0 to bios_rls has no effect. writing a 1 to gbl_sts clears it to logic 0 and also clears bios_rls to logic 0; writing a 0 to gbl_sts has no effect. for the acpi software to raise an event to the bios software, gbl_rls, bios_en, and bios_sts bits are involved. bios_en is the enable bit and the bios_sts is the status bit. both are controlled by the bios software. if gbl_rls is set by the acpi software and bios_en is set by the bios software, an smi is raised. writing a 1 to gbl_rls sets it to logic 1 and also sets bios_sts to logic 1; writing a 0 to gbl_rls has no effect. writing a 1 to bios_sts clears it to logic 0 and also clears gbl_rls to logic 0; writing a 0 to bios_sts has no effect. for the bus master to raise an event t o the acpi software, bm_cntrl, bm_rld, and bm_sts bits are involved. both bm_rld and bm_sts are controlled by the acpi software. if bm_cntrl is set
w83877atf publication release date: april 1998 - 152 - version 0.51 by the bios software and bm_rld is set by the acpi software, an sci interrupt is raised. writing a 1 to bm_cntrl sets it to logic 1 and also sets bm_sts to logic 1; writing a 0 to bm_cntrl has no effect. writing a 1 to bm_sts clears it to logic 0 and also clears bm_cntrl to logic 0; writing a 0 to bm_sts has no effect. 8.3.2 power management timer in the acpi specification, a power management timer is required. the power management timer is a 24 - bit fixed rate free running count - up timer that runs off a 3.579545mhz clock. the power management timer has the corresponding status bit (tmr_sts) and enable bit (tmr_en). the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt. three registers are used to read the timer value; they are loc ated in the pm1 register block. the power management timer has one enable bit (tmr_on) to turn if on or off. the tmr_on is located in gpe register block. if it is cleared to 0, the power management timer function will not work. there are no timer reset requirements, except that the timer should function after power - up. see the following figure for an illustration. to sci logic 24 bit counter bits (23-0) tmr_sts tmr_en tmr_on 3.579545 mhz 24 tmr_val 8.4 acpi registers (acpirs) the acpi register model consists of the fixed register blocks that perfor m the acpi functuions. a register block may be a event register block which deals with acpi events, or a control register block which deals with control features. the ordering in the event register block is the status register, followed by the enable register. each event register, if implemented, contains two egisters: a status register and an enable register, both in 16 - bit size. the status register indicates what defined function needs the acpi system control interrupt (sci). when the hardware event occur s, the defined status bit is set. however, to generate the sci, the associated enable bit must be set. if the enable bit is not set, the software can examine the state of the hardware event by reading the status bit without generating an sci interrupt. any status bit, unless otherwise noted, can only be set by some defined hardware event. it is cleared by writing a 1 to its bit position; writing a 0 has no effect. except forsome special status bits, every status bit has an assiciated enable bit in the same bit position in the enable register. those status bits which have no respective enable bit are read for special purposes. reserved or un - implemented enable bits always return zero, and writing to these bits should have no effect.
w83877atf publication release date: april 1998 - 153 - version 0.51 the control bit in the control register provides some special control functions over the hardware event, or some special control over sci event. reserved or un - implemented control bits always return zero, and writing to those bits should have no effect. table 8 - 4 lists the pm1 reg ister block and the relative locations of the registers within it. the base address of pm1 register block is named as pm1a_evt_blk in the acpi specification. the base address should range from 01,0000,0000 b to 11,1111,0000 b ,i.e., 100h ~ 3f0h, where bit 1 and bit 0 of pm1 register block should be set to 0 and the base address is in the 16 - byte alignment. table 8 - 5 lists the gpe register block and the relative locations within it. the base address of power management event block gpe is named as gpe0_blk in t he acpi specification. the base address should range from 01,0000,0000 b to 11,1111,1000 b ,i.e., 100h ~ 3f8h, where bit 0 of the base address should be set to 0 and the base address is in the 8 - byte alignment. 8.4.1 power management 1 status register 1 (pm1sts1) register location: system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 tmr_sts reserved reserved reserved bm_sts gbl_sts reserved reserved bit name description 0 tmr_sts this bit is the timer carry status bit. this bit gets set anytime the bit 2 3 of the 24 - bit counter changes (whenever the msb changes from low to high or high to low). while tmr_en and tmr_sts are set, a power magement event is raised. this bit is only set by hardware and can only be cleared by the software writing a 1 to this bit position. writing a 0 has no effect. 1 - 3 reserved reserved. 4 bm_sts this is the bus master status bit. writing a 1 to bm_cntrl also sets bm_sts. writing a 1 clears this bit and also clears bm_cntrl. writing a 0 has no effect. 5 gbl_sts this is the glo bal status bit. this bit is set when the bios want the attention of the sci handler. bios sets this bit by setting bios_rls and can only be cleared by software writing a 1 to this bit position. writing a 1 to this bit position also clears bios_rls. writing a 0 has no effect. 6 - 7 reserved reserved. these bits always return a value of zero.
w83877atf publication release date: april 1998 - 154 - version 0.51 8.4.2 power management 1 status register 2 (pm1sts2) register location: +1h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved wak_sts bit name description 0 - 6 reserved reserved. 7 wak_sts this bit is set when the system is in the sleeping state and an enabled resume event occurs. upon setting this bit, the sleeping/working state machine will transition the system to the working state. this bit is only set by hardware, and is cleared by software writing a 1 to this bit position or by the sleeping/working state machine automatically upon the expiry of the global standby timer. writing a 0 has no effect. upon the wak_sts beingcleared and all devices being in sleeping state, the whole chip enters the sleeping state. 8.4.3 power management 1 enable register 1(pm1en1) register location: +2h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 tmr_en reserved reserved reserved gbl_en reserved reserved reserved
w83877atf publication release date: april 1998 - 155 - version 0.51 bit name description 0 tmr_en this is the timer carry interrupt enable bit. when this bit is set, an sci event is generated anytime the tmr_sts bit is set. whe n this bit is reset no interrupt is generated when the tmr_sts bit is set. 1 - 4 reserved reserved. these bits always return a value of zero. 5 gbl_en the global enable bit. when both the gbl_en bit and the gbl_sts bit are set, an sci interrupt is raised. 6 - 7 reserved reserved. 8.4.4 power management 1 enable register 2 (pm1en2) register location: +3h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name d escription 0 - 7 reserved reserved. these bits always return a value of zero. 8.4.5 power management 1 control register 1 (pm1ctl1) register location: +4h system i/o space default value: 00h attribute: read/write size: 8 bits
w83877atf publication release date: april 1998 - 156 - version 0.51 1 2 3 4 5 6 7 0 sci_en bm_rld gbl_rld reserved reserved reserved reserved reserved bit name description 0 sci_en select the power management event to be either an sci or an smi interrupt. when this bit is set, the power management events will generate an sci interrupt. when this bit is reset a nd smi_en bit is set, the power management events will generate an smi interrupt. 1 bm_rld this is the bus master reload enable bit. if this bit is set and bm_cntrl is set, an sci interrupt is raised. 2 gbl_rls the global release bit. this bit is used by the acpi software to raise an event to the bios software. the bios software has a corresponding enable and status bit to control its ability to receive the acpi event. setting gbl_rls sets bios_sts, and it generates an smi interrupt if bios_en is also set . 3 - 7 reserved reserved. these bits always return a value of zero. 8.4.6 power management 1 control register 2 (pm1ctl2) register location: +5h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return a value of zero.
w83877atf publication release date: april 1998 - 157 - version 0.51 8.4.7 power management 1 control register 3 (pm1ctl3) register location: +6h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return a value of zero. 8.4.8 power management 1 control register 4 (pm1ctl4) register location: +7h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return a value of zero.
w83877atf publication release date: april 1998 - 158 - version 0.51 8.4.9 power manageme nt 1 timer 1 (pm1tmr1) register location: +8h system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val0 tmr_val1 tmr_val2 tmr_val3 tmr_val4 tmr_val5 tmr_val6 tmr_val7 bit name description 0 - 7 tmr_val this read - only field returns the running count of the power management timer. this is a 24 - bit counter that runs off of a 3.579545 mhz clock, and counts while in the system working state. the timer is reset and then continues counting until the clkin input to the chip is stopped. if t he clock is restarted without a mr reset, then the counter will continue counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt. 8.4.10 power management 1 timer 2 (pm1tmr2) register location: +9h system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val8 tmr_val9 tmr_val10 tmr_val11 tmr_val12 tmr_val13 tmr_val14 tmr_val15
w83877atf publication release date: april 1998 - 159 - version 0.51 bit name description 0 - 7 tmr_val this read - only field returns the running count of the power management timer. this is a 24 - bit counter that runs off of a 3.579545 mhz clock, and counts while in the system working state. the timer is reset and then continues counting until the clkin input to the chip is stopped. if the clock is restarted without a mr reset, then the counter will continue counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or f rom 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt. 8.4.11 power management 1 timer 3 (pm1tmr3) register location: +ah system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 tmr_val16 tmr_val17 tmr_val18 tmr_val19 tmr_val20 tmr_val21 tmr_val22 tmr_val23 bit name description 0 - 7 tmr_val this read - only field returns the running count of the power management timer. this is a 24 - bit counter that runs off of a 3.579545 mhz clock, and counts while i n the system working state. the timer is reset and then continues counting until the clkin input to the chip is stopped. if the clock is restarted without a mr reset, then the counter will continue counting from where it stopped. the tmr_sts bit is set any time the last bit of the timer (bit 23) goes from 0 to 1 or from 1 to 0. if the tmr_en bit is set, the setting of the tmr_sts bit will generate an sci interrupt.
w83877atf publication release date: april 1998 - 160 - version 0.51 8.4.12 power management 1 timer 4 (pm1tmr4) register location: +bh system i/o space default value: 00h attribute: read only size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return a value of zero. 8.4.13 general purpose event 0 status register 1 (gp0sts1) register location: system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 urbscists urascists fdcscists prtscists reserved reserved reserved reserved these bits indicate the status of the sci input, which is set when the device's irq is raised. if the corresponding enable bi t in the sci interrupt enable register (in gp0en1) is set, an sci interrupt is raised and routed to the output pin. wrinting a 1 clears the bit, and writing a 0 has no effect. if the bit is not cleared, new irq for the sci logic input is ignored, therefore no sci interrupt is raised. bit name description 0 urbscists uart b sci status, which is set by the uart b irq. 1 urascists uart a sci status, which is set by the uart a irq. 2 fdcscists fdc sci status, which is set by the fdc irq. 3 prtscists prt sci status, which is set by the printer port irq. 4 - 7 reserved reserved.
w83877atf publication release date: april 1998 - 161 - version 0.51 8.4.14 general purpose event 0 status register 2 (gp0sts2) register location: +1h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return a value of zero. 8.4.15 general purpose event 0 enable register 1 (gp0en1) register location: +2h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 urbscien urascien fdcscien prtscien reserved reserved reserved reserved these bits are used to enable the device's irq sources onto the sci logic. the sci logic output for the irqs is as follows: sci logic output = (urbscien and urbscists) or (urascien and urascists) or (fdcscien and fdcscists) or (prtscien and prtscists)
w83877atf publication release date: april 1998 - 162 - version 0.51 bit name description 0 urbscien uart b sci enable, which controls the uart b irq for sci. 1 urascien uart a sci enable, which controls the uart a irq f or sci. 2 fdcscien fdc sci enable, which controls the fdc irq for sci. 3 prtscien printer port sci enable, which controls the printer port irq for sci. 4 - 7 reserved reserved. 8.4.16 general purpose event 0 enable register 2 (gp0en2) register location: +3h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return a value of zero. 8.4.17 general purpo se event 1 status register 1 (gp1sts1) register location: +4h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 bios_sts reserved reserved reserved reserved reserved reserved reserved
w83877atf publication release date: april 1998 - 163 - version 0.51 bit name description 0 bios_sts the bios status bit. this bit is set when gbl_rls is set. if bios_en is set, setting gbl_rls will raise an smi event. writing a 1 to its bit location clears bios_sts and also clears gbl_rls. writing a 0 has no effect. 1 - 7 reserved reserved. 8.4.18 general purpose event 1 s tatus register 2 (gp1sts2) register location: +5h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 reserved reserved reserved reserved reserved reserved reserved reserved bit name description 0 - 7 reserved reserved. these bits always return a value of zero. 8.4.19 general purpose event 1 enable register 1 (gp1en1) register location: +6h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 bios_en tmr_on reserved reserved reserved reserved reserved reserved
w83877atf publication release date: april 1998 - 164 - version 0.51 bit name description 0 bios_en this bit raise the smi event. when this bit is set and the acpi software writes a 1 to the gbl_rls bit, an smi event is raised on the smi logic output. 1 tmr_on this bit is used to turn on the power management timer. 1: timer on ; 0: timer off. 2 - 7 reserved reserved. 8.4.20 general purpose event 1 enable register 2 (gp1en2) register location: +7h system i/o space default value: 00h attribute: read/write size: 8 bits 1 2 3 4 5 6 7 0 bios_rls bm_cntrl reserved reserved reserved reserved reserved reserved bit name descrip tion 0 bios_rls the bios release bit. this bit is used by the bios software to raise an event to the acpi software. the acpi software has a corresponding enable and status bit to control its ability to receive the acpi event. setting bios_rls sets gbl_sts, and it generates an sci interrupt if gbl_en is also set. writing a 1 to its bit position sets this bit and also sets the bm_sts bit. writing a 0 has no effect. this bit is cleared by writing a 1 to the gbl_sts bit. 1 bm_cntrl this bit is used to set the bm_sts bit and if the bm_rld bit is also set, then an sci interrupt is generated. writing a 1 sets bm_cntrl to 1 and also sets bm_sts. writing a 0 has no effect. writing a 1 to bm_sts clears bm_sts and also clears bm_cntrl. 2 - 7 reserved reserved.
w83877atf publication release date: april 1998 - 165 - version 0.51 8.4.21 bit map configuration registers table 8 - 4: bit map of pm1 register block register address power - on reset value d7 d6 d5 d4 d3 d2 d1 d0 pm1sts1 0000 0000 0 0 gbl_sts bm_sts 0 0 0 tmr_sts pm1sts2 +1h 0000 0000 wak_sts 0 0 0 0 0 0 0 pm1en1 +2h 0000 0000 0 0 gbl_en 0 0 0 0 tmr_en pm1en2 +3h 0000 0000 0 0 0 0 0 0 0 0 pm1ctl1 +4h 0000 0000 0 0 0 0 0 gbl_rls bm_rld sci_en pm1ctl2 +5h 0000 0000 0 0 0 0 0 0 0 0 pm1ctl3 +6h 0000 0000 0 0 0 0 0 0 0 0 pm1ctl4 +7h 0000 0000 0 0 0 0 0 0 0 0 pm1tmr1 +8h 0000 0000 tmr_val7 tmr_val6 tmr_val5 tmr_val4 tmr_val3 tmr_val2 tmr_val1 tmr_val0 pm1tmr2 +9h 0000 0000 tmr_val15 tmr_val14 tmr_val13 tmr_val12 tmr_val11 tmr_val10 tmr_val9 tmr_val8 pm1tmr3 +ah 0000 0000 tmr_val23 tmr_val22 tmr_val21 tmr_val20 tmr_val19 tmr_val18 tmr_val17 tmr_val16 pm1tmr4 +bh 0000 0000 0 0 0 0 0 0 0 table 8 - 5: bit map of gpe register block register address power - on reset value d7 d6 d5 d4 d3 d2 d1 d0 gp0sts1 0000 0000 0 0 0 0 prtscists fdcscists urascists urbscists gp0sts2 +1h 0000 0000 0 0 0 0 0 0 0 0 gp0en1 +2h 0000 0000 0 0 0 0 prtscien fdcscien urascien urbscien gp0en2 +3h 0000 0000 0 0 0 0 0 0 0 0 gp1sts1 +4h 0000 0000 0 0 0 0 0 0 0 bios_sts gp1sts2 +5h 0000 0000 0 0 0 0 0 0 0 0 gp1en1 +6h 0000 0000 0 0 0 0 0 0 tmr_on bios_en gp1en2 +7h 0000 0000 0 0 0 0 0 0 bm_cntrl bios_rls
w83877atf publication release date: april 1998 - 166 - version 0.51 9.0 specifications 9.1 absolute maximum ratings parameter rating unit power supply voltage - 0.5 to 7.0 v input vol tage - 0.5 to v dd +0.5 v operating temperature 0 to +70 c storage temperature - 55 to +150 c note: exposure to conditions beyond those listed under absolute maximum ratings may adversely affect the life and reliability of the device. 9.2 dc characteristics (ta = 0 c to 70 c, v dd = 5v 10%, v ss = 0v) parameter sym. min. typ. max. uni conditions i/o 8tc - ttl level output pin with source - sink capabilities of 8 ma; cmos level input voltage input low voltage v il - 0.5 0.3xv dd v input high voltage v ih 0.7xv dd v dd +0.5 v output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 2.4 v i oh = - 8 ma input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v i/o 12t - ttl level bi - directional pin with source - sink capabilities of 12 ma input low voltage v il - 0.5 0.8 v input high voltage v ih 2.0 v dd +0.5 v output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 2.4 v i oh = - 12 ma input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v i/o 24t - ttl level bi - directional pin with source - sink capabilities of 24 ma input low voltage v il - 0.5 0.8 v input high voltage v ih 2.0 v dd +0.5 v output low voltage v ol 0.4 v i ol = 24 ma output high voltage v oh 2.4 v i oh = - 24 ma input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v
w83877atf publication release date: april 1998 - 167 - version 0.51 9.2 dc characteristics, continued parameter sym. min. typ. max. unit conditions out 8t - ttl level output pin with source - sink capabili ties of 8 ma output low voltage v ol 0.4 v i ol = 8 ma output high voltage v oh 2.4 v i oh = - 8 ma out 12t - ttl level output pin with source - sink capabilities of 12 ma output low voltage v ol 0.4 v i ol = 12 ma output high voltage v oh 2.4 v i oh = - 12 ma od 12 - open - drain output pin with sink capabilities of 12 ma output low voltage v ol 0.4 v i ol = 12 ma od 24 - open - drain output pin with sink capabilities of 24 ma output low voltage v ol 0.4 v i ol = 24 ma in t - ttl level input pin input low voltage v il 0.8 v v dd = 5 v input high voltage v ih 2.0 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v in ts - ttl level input pin schmitt - trigger input pin input low threshold voltage v t - 0.5 0.8 1.1 v v dd = 5 v input high threshold vo ltage v t+ 1.6 2.0 2.4 v v dd = 5 v hysteresis (v t+ - v t - ) v th 0.5 1.2 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v in c - cmos level input pin input low voltage v il 0.3xv dd v v dd = 5 v input high voltage v ih 0.7xv dd v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i l il - 10 m a v in = 0v in cs - cmos level schmitt - triggered input pin input low threshold voltage v t - 1.3 1.5 1.7 v v dd = 5 v input high threshold voltage v t+ 3..2 3.5 3.8 v v dd = 5 v hysteresis (v t+ - v t - ) v th 1.5 2 v v dd = 5 v input high leakage i lih +10 m a v in = v dd input low leakage i lil - 10 m a v in = 0v
w83877atf publication release date: april 1998 - 168 - version 0.51 9.3 ac characteristics fdc: data rate = 1 mb/500 kb/300 kb/250 kb/sec. parameter sym. test conditions min. typ. (note 1) max. unit sa9 - sa0, aen, dack , cs , setup time to i o r ? ? t ar 25 ns sa9 - sa0, aen, dack , hold time for ior ? ? t ar 0 ns ior width t rr 80 ns data access time from ior ? ? t fd cl = 100 pf 80 ns data hold from ior ? ? t dh cl = 100 pf 10 ns sd to from ior ? ? t df cl = 100 pf 10 50 ns irq delay from ior ? ? t ri 360/570 /675 ns sa9 - sa0, aen, dack , setup time to iow ? ? t aw 25 ns sa9 - sa0, aen, dack , hold time for iow ? ? t wa 0 ns iow width t ww 60 ns data setup time to iow ? ? t dw 60 ns data hold time from iow ? ? t wd 0 ns irq delay from iow ? ? t wi 360/570 /675 ns drq cycle time t mcy 27 m s drq delay time dack ? ? t am 50 ns drq to dack delay t ma 0 ns dack width t aa 260/430 /510 ns ior delay from drq t mr 0 ns iow delay from drq t mw 0 ns
w83877atf publication release date: april 1998 - 169 - version 0.51 9.3.1 ac characteristic s, fdc continued parameter sym. test conditions min. typ. (note 1) max. unit iow or ior response time from drq t mrw 6/12 /20/24 m s tc width t tc 135/220 /260 ns reset width t rst 1.8/3/3. 5 m s index width t idx 0.5/0.9 /1.0 m s dir setup time to step t dst 1.0/1.6 /2.0 m s dir hold time from step t std 24/40/48 m s step pulse width t stp 6.8/11.5 /13.8 7/11.7 /14 7.2/11.9 /14.2 m s step cycle width t sc note 2 note 2 note 2 m s wd pulse width t wdd 100/185 /225 125/210 /250 150/235 /275 m s write precompensation t wpc 100/138 /225 125/210 /250 150/235 /275 m s notes: 1. typical values for t = 25 c and normal supply voltage. 2. program mable from 2 ms through 32 ms in 2 ms increments.
w83877atf publication release date: april 1998 - 170 - version 0.51 uart/parallel port parameter symbol test conditions min. max. unit delay from stop to set interrupt t sint 9/16 baud rate delay from ior reset interrupt t rint 100 pf loading 1 m s delay from initial irq reset to transmit start t irs 1/16 8/16 baud rate delay from iow to reset interrupt t hr 100 pf loading 175 ns delay from initial iow to interrupt t si 9/16 16/16 baud rate delay from stop to set interrupt t sti 1/2 baud rate delay from ior to reset interrupt t ir 100 pf loading 250 ns delay from ior to output t mwo 100 pf loading 200 ns set interrupt delay from modem input t sim 250 ns reset interrupt delay from ior t rim 250 ns interrupt active delay t iad 100 pf loading 25 ns interrupt inactive delay t iid 100 pf loading 30 ns baud divisor n 100 pf loading 2 16 - 1 parallel port mode parameters parameter sym. min. ty p. max. unit pd0 - 7, index , strobe , autofd delay from iow t1 100 ns irq delay from ack , nfault t2 60 ns irq delay from iow t3 105 ns irq active low in ecp and epp modes t4 200 300 ns error active to irq active t5 105 ns
w83877atf publication release date: april 1998 - 171 - version 0.51 epp data or address read cycle timing parameters parameter sym. min. max. unit ax valid to ior asserted t1 40 ns iochrdy deasserted to ior deasserted t2 0 ns ior deasserted to ax valid t3 10 10 ns ior deasserted to iow or ior asserted t4 40 ior asserted to iochrdy asserted t5 0 24 ns pd valid to sd valid t6 0 75 ns ior deasserted to sd hi - z (hold time) t7 0 40 m s sd valid to iochrdy deasserted t8 0 85 ns wait deasserted to iochrdy deasserted t9 60 160 ns pd hi - z to pdbir set t10 0 ns write deasserted to ior asserted t13 0 ns wait asserted to write deasserted t14 0 185 ns deasserted to write modified t15 60 190 ns ior asserted to pd hi - z t16 0 50 ns wait assert ed to pd hi - z t17 60 180 ns command asserted to pd valid t18 0 ns command deasserted to pd hi - z t19 0 ns wait deasserted to pd drive t20 60 190 ns write deasserted to command t21 1 ns pbdir set to command t22 0 20 ns pd hi - z to command asserted t23 0 30 ns asserted to command asserted t24 0 195 ns wait deasserted to command deasserted t25 60 180 ns time out t26 10 12 ns pd valid to wait deasserted t27 0 ns pd hi - z to wait deasserted t28 0 m s
w83877atf publication release date: april 1998 - 172 - version 0.51 epp data or address write cycle timing parameters parameter sym. min. max. unit ax valid to iow asserted t1 40 ns sd valid to asserted t2 10 ns iow deasserted to ax invalid t3 10 ns wait deasserted to iochrdy deasserted t4 0 ns command asserted to wait deasserted t5 10 ns iow deasserted to iow or ior asserted t6 40 ns iochrdy deasserted to iow deasserted t7 0 24 ns wait asserted to command asserted t 8 60 160 ns iow asserted to wait asserted t9 0 70 ns pbdir low to write asserted t10 0 ns wait asserted to write asserted t11 60 185 ns wait asserted to write change t12 60 185 ns iow asserted to pd valid t13 0 50 ns wait asserted to pd invalid t14 0 ns pd invalid to command asserted t15 10 ns iow to command asserted t16 5 35 ns wait asserted to command asserted t17 60 210 ns wait deasserted to command deasserted t18 60 190 ns command asserted to wait deasserted t19 0 10 m s time out t20 10 12 m s command deasserted to wait asserted t21 0 ns iow deasserted to write deasserted and pd invalid t22 0 ns parallel port fifo timing parameters parameter symbol min. max. unit data valid to nstrobe active t1 600 ns nstrobe active pulse width t2 600 ns data hold from nstrobe inactive t3 450 ns busy inactive to pd inactive t4 80 ns busy inactive to nstrobe act ive t5 680 ns nstrobe active to busy active t6 500 ns
w83877atf publication release date: april 1998 - 173 - version 0.51 ecp parallel port forward timing parameters parameter symbol min. max. unit nautofd valid to nstrobe asserted t1 0 60 ns pd valid to nstrobe asserted t2 0 60 ns busy deasserted to nautofd changed t3 80 180 ns busy deasserted to pd changed t4 80 180 ns nstrobe deasserted to busy deasserted t5 0 ns busy deasserted to nstrobe asserted t6 80 200 ns nstrobe asserted to busy asserted t7 0 ns busy asserted to nstrobe deasserted t8 80 180 ns ecp parallel port reverse timing parameters parameter symbol min. max. unit pd valid to nack asserted t1 0 ns nautofd deasserted to pd changed t2 0 ns nautofd asserted to nack asserted t3 0 ns nautofd deasserted to nack deasserted t4 0 ns nack deasserted to nautofd asserted t5 80 200 ns pd changed to nautofd deasserted t6 80 200 ns
w83877atf publication release date: april 1998 - 174 - version 0.51 10.0 timing wavefor ms 10.1 fdc processor read operation wd write date aen sa0-sa9 cs twdd tar tdh tdf tra index tidx tidx index taw twd twa processor write operation terminal count reset ttc tc trst reset dma operation irq d0-d7 dack ior irq d0-d7 aen sa0-sa9 dack iow drive seek operation step dir tdst tstp tstd trr tr tfd tsc tmw (iow) tmr (ior) tma tam drq dack iow or ior tmcy taa tmrw tww twi tdw
w83877atf publication release date: april 1998 - 175 - version 0.51 10.2 uart/parallel trint star data bits (5-8) parity stop tsint star parity data (5-8) stop (1-2) star tir thr tsi thr thrs tsti sin (receiver input data) irq3 or irq4 ior (read receiver buffer register) serial out (sout) iow (write thr) irq3 or irq4 ior (read tir) receiver timing transmitter timing
w83877atf publication release date: april 1998 - 176 - version 0.51 modem control timing ack irq7 ri ior (read msr) iow (write mcr) rts,dtr cts,dsr dcd modem control timing x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ?? ? ? ? tlid tlad printer interrupt timing ?? tsim ?? ?? ? ?? ? tmwo tmwo ?? ? tsim ? ?? ? ?? ? ?? trim trim tsim irq3 or irq4
w83877atf publication release date: april 1998 - 177 - version 0.51 10.3 parallel port parallel port timing iow init, strobe autofd, slctin ack irq (spp) irq (epp or ecp) nfault (ecp) error (ecp) irq t1 t2 t3 t4 t5 t2 t4 pd<0:7>
w83877atf publication release date: april 1998 - 178 - version 0.51 epp data or address read cycle (epp version 1.9) write datastb t13 t16 t14 t17 t22 t18 t23 t24 t21 t25 t19 t15 t20 addrstb wait t26 t27 t28 pd<0:7> t1 iochrdy t3 t2 t4 t10 ior t5 t6 t7 t8 t9 sd<0:7> a<0:10>
w83877atf publication release date: april 1998 - 179 - version 0.51 epp data or address write cycle (epp version 1.9) t3 addrstb a10-a0 iow iochrdy write datast t1 t2 wait t4 t5 t6 t20 t19 t 7 t9 t10 t11 t13 t15 t16 t17 t22 t8 t18 t21 t12 t14 sd<0:7> pd<0:7> pbdir
w83877atf publication release date: april 1998 - 180 - version 0.51 epp data or address read cycle (epp version 1.7) write datastb t13 t16 t14 t17 t22 t18 t23 t24 t21 t25 t19 t15 t20 addrstb wait t26 t27 t28 pd<0:7> t1 iochrdy t3 t2 t4 t10 ior t5 t6 t7 t8 t9 sd<0:7> a<0:10>
w83877atf publication release date: april 1998 - 181 - version 0.51 epp data or address write cycle (epp version 1.7) t3 addrstb a10-a0 iochrdy write datast t1 t2 iow wait t4 t5 t6 t20 t19 t7 t9 t10 t11 t13 t15 t16 t17 t8 t18 t22 t22 sd<0:7> pd<0:7> parallel port fifo timing nstrobe busy > t3 >| >| >| t1 >| t2 t6 >| t5 t4 pd<0:7>
w83877atf publication release date: april 1998 - 182 - version 0.51 ecp parallel port forward timing t3 nautofd t1 t2 nstrobe busy t5 t7 t5 t6 t8 t4 pd<0:7> ecp parallel port reverse timing t1 t5 nack nautofd t3 t6 t4 t5 t2 pd<0:7>
w83877atf publication release date: april 1998 - 183 - version 0.51 11.0 application ci rcuits 11.1 parallel port extension fdd 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 printer port 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1 jp13 we2/slct wd2/pe mob2/busy dsb2/ack pd7 pd6 pd5 dch2/pd4 rdd2/pd3 step2/slin wp2/pd2 dir2/init trk02/pd1 head2/err idx2/pd0 rwc2/afd stb jp 13a ext fdc dch2 trk02 rdd2 dir2 wp2 mob2 rwc2 dsb2 head2 step2 wd2 we2 idx2 parallel port extension fdd mode connection diagram
w83877atf publication release date: april 1998 - 184 - version 0.51 11.2 parallel port extension 2fdd 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1 printer port 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1 jp13 we2/slct wd2/pe mob2/busy dsb2/ack pd5 dch2/pd4 rdd2/pd3 step2/slin wp2/pd2 dir2/init trk02/pd1 head2/err idx2/pd0 rwc2/afd stb jp 13a ext fdc dch2 trk02 rdd2 dir2 wp2 mob2 rwc2 dsb2 head2 step2 wd2 we2 idx2 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 dsa2 moa2 parallel port extension 2fdd connection diagram dsa2/pd7 moa2/pd6 11.3 four fdd mode g1 a1 b1 g2 a2 b2 1y0 1y1 1y2 1y3 2y0 2y1 2y2 2y3 dsa moa dsa dsb moa mob w83777atf 74ls139 7407(2) mod moc mob dsc dsd dsb
w83877atf publication release date: april 1998 - 185 - version 0.51 12.0 ordering information part no. package w83877atf 100 - pin qfp W83877ATD 100 - pin tqfp 13.0 how to read th e top marking example: the top marking of w83877atf inbond w83877atf 732ac27242968 1st line: winbond logo 2nd line: the type number: w83877atf 3rd line: the tracking code: 732 a c 2 7242968 732 : packages made in '9 7 , week 19 a : assembly house id; a means ase, s means spil ... etc c : ic revision; b means version b, c means version c 2 : wafers manufactured in winbond fab 2 7242968 : wafer production series lot number
w83877atf publication release date: april 1998 - 186 - version 0.51 14.0 package dimens ions w83877atf (100 - pin qfp) 51 50 31 30 1 80 81 100 2 1 a h d d e b e h e y a a seating plane l l 1 see detail f detail f c 1. dimension d & e do not include interlead flash. 2. dimension b does not include dambar protrusion/intrusion. 3. controlling dimension: millimeters 4. general appearance spec. should be based on final visual inspection spec. 0.10 0 12 0 0.004 3.30 0.10 0.130 0.004 notes: symbol min. nom. max. max. nom. min. dimension in inches dimension in mm 12 2.40 1.40 19.10 1.20 18.80 1.00 18.49 0.094 0.055 0.988 0.752 0.047 0.976 0.740 0.039 0.964 0.728 0.65 20.13 14.13 0.25 0.40 2.97 20.00 14.00 2.85 19.87 13.87 0.10 0.25 2.73 0.792 0.556 0.010 0.016 0.117 0.787 0.551 0.112 0.026 0.782 0.546 0.004 0.010 0.107 0.012 0.006 0.15 0.30 24.49 24.80 25.10 0.020 0.087 0.032 0.103 0.50 0.80 2.21 2.62 a b c d e h d h e l y a a l 1 1 2 e q q
w83877atf publication release date: april 1998 - 187 - version 0.51 W83877ATD (100 - pin tqfp) 51 50 31 30 1 80 81 100 2 1 a h d d e b e h e y a a seating plane l l 1 see detail f detail f c 1. dimension d & e do not include interlead flash. 2. dimension b does not include dambar protrusion/intrusion. 3. controlling dimension: millimeters 4. general appearance spec. should be based on final visual inspection spec. 0.08 0 7 0 0.003 0.05 0.002 notes: symbol min. nom. max. max. nom. min. dimension in inches dimension in mm 7 1.00 0.75 16.10 0.60 16.00 0.45 15.90 0.039 0.030 0.870 0.634 0.024 0.866 0.630 0.018 0.862 0.626 0.65 20.10 14.10 0.20 0.38 1.45 20.00 14.00 1.40 19.90 13.90 0.10 0.22 1.35 0.791 0.555 0.008 0.015 0.057 0.787 0.551 0.055 0.026 0.783 0.547 0.004 0.009 0.053 0.013 0.006 0.15 0.32 21.90 22.00 22.10 0.020 0.032 0.498 0.802 a b c d e h d h e l y a a l 1 1 2 e q q 0.004 0.006 0.10 0.15 headquarters no. 4, creation rd. iii science-based industrial park hsinchu, taiwan tel: 886-35-770066 fax: 886-35-789467 www: http://www.winbond.com.tw/ taipei office 11f, no. 115, sec. 3, min-sheng east rd. taipei, taiwan tel: 886-2-7190505 fax: 886-2-7197502 tlx: 16485 wintpe winbond electronics (h.k.) ltd. rm. 803, world trade square, tower ii 123 hoi bun rd., kwun tong kowloon, hong kong tel: 852-27516023-7 fax: 852-27552064 winbond electronics (north america) corp. 2730 orchard parkway san jose, ca 95134 u.s.a. tel: 1-408-9436666 fax: 1-408-9436668 please note that all data and specifications are subject to change without notice. all the trade marks of products and companies mentioned in this data sheet belong to their original owners .


▲Up To Search▲   

 
Price & Availability of W83877ATD

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X